From 14fe1db2ab33041235243924549a068624fd3c15 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 19 Dec 2024 21:25:46 -0600 Subject: [PATCH] redefinition removal --- src/pc/ini.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/pc/ini.c b/src/pc/ini.c index 8cf609956..91927cbba 100644 --- a/src/pc/ini.c +++ b/src/pc/ini.c @@ -286,38 +286,6 @@ const char* ini_get(ini_t *ini, const char *section, const char *key) { return NULL; } -/** - * Finds first key with matching value - * @return string of key name - */ -const char* ini_find_key(ini_t *ini, const char* section, const char* value) { - char *current_section = ""; - char *val; - char *p = ini->data; - - if (*p == '\0') { - p = next(ini, p); - } - - while (p < ini->end) { - if (*p == '[') { - current_section = p + 1; - } - else { - val = next(ini, p); - if (!section || !strcmpci(section, current_section)) { - if (!strcmpci(val,value)) { - return p; - } - } - p = val; - } - p = next(ini,p); - } - - return NULL; -} - /** * Gets value by specified key, section and format string. * @return a value specified in the format in `dst`.