From: Adam Dickmeiss Date: Tue, 3 Dec 2013 08:55:36 +0000 (+0100) Subject: Remove unused code section X-Git-Tag: v1.6.38~26 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=3d613e1dc817066f13a7dd42bbe5f1c814fc5c17;p=pazpar2-moved-to-github.git Remove unused code section --- diff --git a/src/reclists.c b/src/reclists.c index c6bbfd4..00133ed 100644 --- a/src/reclists.c +++ b/src/reclists.c @@ -54,7 +54,6 @@ static void append_merge_keys(struct record_metadata_attr **p, const struct record_metadata_attr *a, NMEM nmem) { -#if 1 for (; a; a = a->next) { struct record_metadata_attr **pi = p; @@ -69,18 +68,6 @@ static void append_merge_keys(struct record_metadata_attr **p, (*pi)->next = 0; } } -#else - while (*p) - p = &(*p)->next; - for (; a; a = a->next) - { - *p = (struct record_metadata_attr *) nmem_malloc(nmem, sizeof(**p)); - (*p)->name = nmem_strdup_null(nmem, a->name); - (*p)->value = nmem_strdup_null(nmem, a->value); - p = &(*p)->next; - } - *p = 0; -#endif } struct reclist_sortparms *reclist_parse_sortparms(NMEM nmem, const char *parms,