diff options
Diffstat (limited to 'config/config.c')
-rw-r--r-- | config/config.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/config/config.c b/config/config.c index af8f4f9b2..9c28785c6 100644 --- a/config/config.c +++ b/config/config.c @@ -122,25 +122,3 @@ device_is_duplicate(const char *config_info) return FALSE; } -/** - * Allocate a new option and append to the list. - * - * @return A pointer to the newly allocated InputOption struct. - */ -InputOption* -add_option(InputOption **options, const char *key, const char *value) -{ - if (!value || *value == '\0') - return NULL; - - for (; *options; options = &(*options)->next) - ; - *options = calloc(sizeof(**options), 1); - if (!*options) /* Yeesh. */ - return NULL; - (*options)->key = strdup(key); - (*options)->value = strdup(value); - (*options)->next = NULL; - - return *options; -} |