From: Adam Dickmeiss Date: Thu, 4 Aug 2011 11:00:02 +0000 (+0200) Subject: zoomsh: remove unused code for cmd facets X-Git-Tag: v4.2.8~13^2~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=37fbd309fef590f0cc0e3bc955161bcb8e37e99e;p=yaz-moved-to-github.git zoomsh: remove unused code for cmd facets --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 702b09d..9115bf3 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -311,29 +311,6 @@ static void cmd_facets(ZOOM_connection *c, ZOOM_resultset *r, const char **args) { int i; - size_t start = 0, count = 1; - const char *type = "render"; - WRBUF render_str = 0; - - if (0) - { - WRBUF tmp; - - if ((tmp = next_token_new_wrbuf(args))) - { - start = atoi(wrbuf_cstr(tmp)); - wrbuf_destroy(tmp); - } - - if ((tmp = next_token_new_wrbuf(args))) - { - count = atoi(wrbuf_cstr(tmp)); - wrbuf_destroy(tmp); - } - render_str = next_token_new_wrbuf(args); - } - if (render_str) - type = wrbuf_cstr(render_str); process_events(c); @@ -357,9 +334,6 @@ static void cmd_facets(ZOOM_connection *c, ZOOM_resultset *r, } } } - if (render_str) - wrbuf_destroy(render_str); - } static void cmd_ext(ZOOM_connection *c, ZOOM_resultset *r,