From 6f0fb96be98c7e6c5829e9e24567e653b66af371 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 15 Aug 2012 12:33:19 +0200 Subject: [PATCH] Remove unused get_termlist_score Not in use anywhere. --- src/session.c | 17 ----------------- src/session.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/src/session.c b/src/session.c index 076ce7d..1c158e6 100644 --- a/src/session.c +++ b/src/session.c @@ -1014,23 +1014,6 @@ struct hitsbytarget *get_hitsbytarget(struct session *se, int *count, NMEM nmem) session_leave(se); return p; } - -struct termlist_score **get_termlist_score(struct session *se, - const char *name, int *num) -{ - int i; - struct termlist_score **tl = 0; - - session_enter(se); - for (i = 0; i < se->num_termlists; i++) - if (!strcmp((const char *) se->termlists[i].name, name)) - { - tl = termlist_highscore(se->termlists[i].termlist, num); - break; - } - session_leave(se); - return tl; -} // Compares two hitsbytarget nodes by hitcount static int cmp_ht(const void *p1, const void *p2) diff --git a/src/session.h b/src/session.h index 17d805f..5cf1fc1 100644 --- a/src/session.h +++ b/src/session.h @@ -175,8 +175,6 @@ struct record_cluster *show_single_start(struct session *s, const char *id, struct record_cluster **prev_r, struct record_cluster **next_r); void show_single_stop(struct session *s, struct record_cluster *rec); -struct termlist_score **get_termlist_score(struct session *s, - const char *name, int *num); int session_set_watch(struct session *s, int what, session_watchfun fun, void *data, struct http_channel *c); int session_active_clients(struct session *s); int session_is_preferred_clients_ready(struct session *s); -- 1.7.10.4