From 9e44d599d66234c11bdff3614f3e410d492fc356 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Mar 2013 12:46:35 +0100 Subject: [PATCH] Remove unused client code --- src/client.c | 14 ++------------ src/client.h | 8 -------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/client.c b/src/client.c index 51b2c60..27a32f3 100644 --- a/src/client.c +++ b/src/client.c @@ -221,11 +221,6 @@ struct session *client_get_session(struct client *cl) return cl->session; } -const char *client_get_pquery(struct client *cl) -{ - return cl->pquery; -} - static void client_send_raw_present(struct client *cl); static int nativesyntax_to_type(const char *s, char *type, ZOOM_record rec); @@ -359,7 +354,7 @@ void client_show_raw_remove(struct client *cl, void *data) } } -void client_show_raw_dequeue(struct client *cl) +static void client_show_raw_dequeue(struct client *cl) { struct show_raw *rr = cl->show_raw; @@ -455,7 +450,7 @@ static int nativesyntax_to_type(const char *s, char *type, * TODO Consider thread safety!!! * */ -void client_report_facets(struct client *cl, ZOOM_resultset rs) +static void client_report_facets(struct client *cl, ZOOM_resultset rs) { struct session_database *sdb = client_get_database(cl); ZOOM_facet_field *facets = ZOOM_resultset_facets(rs); @@ -1709,11 +1704,6 @@ static void client_suggestions_destroy(struct client *cl) nmem_destroy(nmem); } -int client_test_sort_order(struct client *cl, struct reclist_sortparms *sp) -{ - //TODO implement correctly. - return 1; -} /* * Local variables: * c-basic-offset: 4 diff --git a/src/client.h b/src/client.h index d50fbdf..64fcafc 100644 --- a/src/client.h +++ b/src/client.h @@ -59,16 +59,9 @@ struct connection *client_get_connection(struct client *cl); struct session_database *client_get_database(struct client *cl); void client_set_database(struct client *cl, struct session_database *db); struct session *client_get_session(struct client *cl); -const char *client_get_pquery(struct client *cl); -void client_init_response(struct client *cl, Z_APDU *a); void client_search_response(struct client *cl); void client_record_response(struct client *cl, int *got_records); -void client_close_response(struct client *cl, Z_APDU *a); - -int client_is_our_response(struct client *cl); - -void client_continue(struct client *cl); struct client *client_create(const char *url); int client_destroy(struct client *c); @@ -116,7 +109,6 @@ const char *client_get_facet_limit_local(struct client *cl, int *l, NMEM nmem, int *num, char ***values); -int client_test_sort_order(struct client *cl, struct reclist_sortparms *sp); void client_update_show_stat(struct client *cl, int cmd); #endif -- 1.7.10.4