From: Adam Dickmeiss Date: Fri, 6 Mar 2015 10:24:34 +0000 (+0100) Subject: Remove unused function service_apply_setting PAZ-984 X-Git-Tag: v1.8.7~12 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f2db9c3965cc836568198e832908c3e2d62dd8cd;p=pazpar2-moved-to-github.git Remove unused function service_apply_setting PAZ-984 --- diff --git a/src/settings.c b/src/settings.c index 85af04d..ae92345 100644 --- a/src/settings.c +++ b/src/settings.c @@ -157,29 +157,6 @@ char *settings_name(struct conf_service *service, int offset) return service->dictionary->dict[offset]; } - -// Apply a session override to a database -void service_apply_setting(struct conf_service *service, char *name, char *value) -{ - struct setting *s; - int offset = settings_create_offset(service, name); - expand_settings_array(&service->settings->settings, &service->settings->num_settings, offset, service->nmem); - for (s = service->settings->settings[offset]; s; s = s->next) - if (!strcmp(s->name, name)) - { - s->value = value; - return; - } - s = nmem_malloc(service->nmem, sizeof(*s)); - s->precedence = 0; - s->target = NULL; - s->name = name; - s->value = value; - s->next = service->settings->settings[offset]; - service->settings->settings[offset] = s; -} - - static int isdir(const char *path) { struct stat st;