From: Adam Dickmeiss Date: Thu, 31 Jan 2013 14:46:03 +0000 (+0100) Subject: Don't use local variable same_sort_order X-Git-Tag: v1.6.25~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3d72c16632e288e4a6635152083b7cb930707428;p=pazpar2-moved-to-github.git Don't use local variable same_sort_order It's replaced by client->same_search member. --- diff --git a/src/session.c b/src/session.c index b7fcfec..0817d8e 100644 --- a/src/session.c +++ b/src/session.c @@ -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);