Don't use local variable same_sort_order
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 31 Jan 2013 14:46:03 +0000 (15:46 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 31 Jan 2013 14:46:28 +0000 (15:46 +0100)
It's replaced by client->same_search member.

src/session.c

index b7fcfec..0817d8e 100644 (file)
@@ -734,7 +734,6 @@ enum pazpar2_error_code session_search(struct session *se,
     int no_failed_query = 0;
     int no_failed_limit = 0;
     struct client_list *l, *l0;
-    int same_sort_order = 0;
 
     session_log(se, YLOG_DEBUG, "Search");
 
@@ -749,10 +748,6 @@ enum pazpar2_error_code session_search(struct session *se,
     session_enter(se, "session_search");
     se->settings_modified = 0;
 
-    if (se->sorted_results) {
-        if (!reclist_sortparms_cmp(se->sorted_results, sp))
-            same_sort_order = 1;
-    }
     session_clear_set(se, sp);
     relevance_destroy(&se->relevance);