From: Adam Dickmeiss Date: Thu, 10 Apr 2014 08:36:37 +0000 (+0200) Subject: Remove some redundant wrbuf_vp_puts alikes X-Git-Tag: v5.1.0~10^2~5 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=6fff10e5d447893654828b451d366b3452edf637;p=yaz-moved-to-github.git Remove some redundant wrbuf_vp_puts alikes --- diff --git a/src/rpn2cql.c b/src/rpn2cql.c index 8a09212..3402ac9 100644 --- a/src/rpn2cql.c +++ b/src/rpn2cql.c @@ -20,11 +20,6 @@ #include #include /* For yaz_prox_unit_name() */ -static void wrbuf_vputs(const char *buf, void *client_data) -{ - wrbuf_write((WRBUF) client_data, buf, strlen(buf)); -} - static const char *lookup_index_from_string_attr(Z_AttributeList *attributes) { int j; @@ -357,7 +352,7 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct, WRBUF w, Z_RPNQuery *q) { - return cql_transform_rpn2cql_stream(ct, wrbuf_vputs, w, q); + return cql_transform_rpn2cql_stream(ct, wrbuf_vp_puts, w, q); } /* diff --git a/src/rpn2solr.c b/src/rpn2solr.c index c9143c7..13d0350 100644 --- a/src/rpn2solr.c +++ b/src/rpn2solr.c @@ -19,11 +19,6 @@ #include #include -static void wrbuf_vputs(const char *buf, void *client_data) -{ - wrbuf_write((WRBUF) client_data, buf, strlen(buf)); -} - static const char *lookup_index_from_string_attr(Z_AttributeList *attributes) { int j; @@ -428,7 +423,7 @@ int solr_transform_rpn2solr_wrbuf(solr_transform_t ct, WRBUF w, Z_RPNQuery *q) { - return solr_transform_rpn2solr_stream(ct, wrbuf_vputs, w, q); + return solr_transform_rpn2solr_stream(ct, wrbuf_vp_puts, w, q); } /* diff --git a/src/zoom-query.c b/src/zoom-query.c index 2fc197d..a9b0941 100644 --- a/src/zoom-query.c +++ b/src/zoom-query.c @@ -136,12 +136,6 @@ Z_SortKeySpecList *ZOOM_query_get_sortspec(ZOOM_query s) return s->sort_strategy == SORT_STRATEGY_Z3950 ? s->sort_spec : 0; } -static void cql2pqf_wrbuf_puts(const char *buf, void *client_data) -{ - WRBUF wrbuf = (WRBUF) client_data; - wrbuf_puts(wrbuf, buf); -} - const char *ZOOM_query_get_query_string(ZOOM_query s) { return wrbuf_cstr(s->full_query); @@ -194,7 +188,7 @@ static char *cql2pqf(ZOOM_connection c, const char *cql) { WRBUF wrbuf_result = wrbuf_alloc(); error = cql_transform(trans, cql_parser_result(parser), - cql2pqf_wrbuf_puts, wrbuf_result); + wrbuf_vp_puts, wrbuf_result); if (error != 0) { char buf[512]; const char *addinfo;