From 6c8b3bb29daf5c2304a165aa7ad6f78b8ff618b4 Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Sun, 29 Sep 2019 12:36:45 +0100 Subject: [PATCH] Remove redundant config parsing conditionals * They are already covered in the last `else` block --- src/config.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/config.c b/src/config.c index 2983f43..4414739 100644 --- a/src/config.c +++ b/src/config.c @@ -251,10 +251,6 @@ bool config_file_parse(char* filename, PCONFIGURATION config) { config->address = value; } else if (strcmp(key, "sops") == 0) { config->sops = strcmp("true", value) == 0; - } else if (strcmp(key, "localaudio") == 0) { - config->localaudio = strcmp("true", value) == 0; - } else if (strcmp(key, "quitappafter") == 0) { - config->quitappafter = strcmp("true", value) == 0; } else { for (int i=0;long_options[i].name != NULL;i++) { if (strcmp(long_options[i].name, key) == 0) {