From 3d72c16632e288e4a6635152083b7cb930707428 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 31 Jan 2013 15:46:03 +0100 Subject: [PATCH] Don't use local variable same_sort_order It's replaced by client->same_search member. --- src/session.c | 5 ----- 1 file changed, 5 deletions(-) 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); -- 1.7.10.4