From f2db9c3965cc836568198e832908c3e2d62dd8cd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 6 Mar 2015 11:24:34 +0100 Subject: [PATCH] Remove unused function service_apply_setting PAZ-984 --- src/settings.c | 23 ----------------------- 1 file changed, 23 deletions(-) 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; -- 1.7.10.4