From: Adam Dickmeiss Date: Thu, 8 Oct 2009 13:01:18 +0000 (+0200) Subject: Remove unused code X-Git-Tag: v1.2.2~17 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=aa06e37ed93f09b830953e51f28a0c90dc5138f5;p=pazpar2-moved-to-github.git Remove unused code --- diff --git a/src/reclists.c b/src/reclists.c index 44ed96c..fc6a578 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -51,62 +51,8 @@ struct reclist_bucket struct reclist_bucket *next; }; -#if 0 -struct reclist_sortparms * -reclist_sortparms_insert_field_id(NMEM nmem, - struct reclist_sortparms **sortparms, - int field_id, - enum conf_sortkey_type type, - int increasing) -{ - struct reclist_sortparms * tmp_rlsp = 0; - // assert(nmem); - - if(!sortparms || field_id < 0) - return 0; - - // construct new reclist_sortparms - tmp_rlsp = nmem_malloc(nmem, sizeof(struct reclist_sortparms)); - tmp_rlsp->offset = field_id; - tmp_rlsp->type = type; - tmp_rlsp->increasing = increasing; - - - // insert in *sortparms place, moving *sortparms one down the list - tmp_rlsp->next = *sortparms; - *sortparms = tmp_rlsp; - - return *sortparms; -}; -#endif - -#if 0 -struct reclist_sortparms * -reclist_sortparms_insert(NMEM nmem, - struct reclist_sortparms **sortparms, - struct conf_service * service, - const char * name, - int increasing) -{ - int field_id = 0; - - if (!sortparms || !service || !name) - return 0; - - field_id = conf_service_sortkey_field_id(service, name); - - if (-1 == field_id) - return 0; - - return reclist_sortparms_insert_field_id(nmem, sortparms, field_id, - service->sortkeys[field_id].type, - increasing); -}; -#endif - - struct reclist_sortparms *reclist_parse_sortparms(NMEM nmem, const char *parms, - struct conf_service *service) + struct conf_service *service) { struct reclist_sortparms *res = 0; struct reclist_sortparms **rp = &res; diff --git a/src/reclists.h b/src/reclists.h index fcf5919..d49acff 100644 --- a/src/reclists.h +++ b/src/reclists.h @@ -34,22 +34,6 @@ struct reclist_sortparms struct reclist_sortparms *next; }; -struct reclist_sortparms * -reclist_sortparms_insert_field_id(NMEM nmem, - struct reclist_sortparms **sortparms, - int field_id , - enum conf_sortkey_type type, - int increasing); - - -struct reclist_sortparms * -reclist_sortparms_insert(NMEM nmem, - struct reclist_sortparms **sortparms, - struct conf_service * service, - const char * name, - int increasing); - - struct reclist *reclist_create(NMEM, int numrecs); struct record_cluster *reclist_insert( struct reclist *tl, struct conf_service *service,