]> git.ipfire.org Git - pakfire.git/commitdiff
config: Drop unused function
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 14:10:42 +0000 (14:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 14:10:42 +0000 (14:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/config.c
src/pakfire/config.h

index 02607d06cd3f73fd853e847cf912b78cf23b167e..f38302599e9d46d10cdd4c6aefcdb2d78fa26505 100644 (file)
@@ -368,17 +368,6 @@ size_t pakfire_config_get_bytes(struct pakfire_config* config,
        return _default;
 }
 
-FILE* pakfire_config_get_fopen(struct pakfire_config* config,
-               const char* section, const char* key) {
-       struct pakfire_config_entry* entry = pakfire_config_find(config, section, key);
-
-       // Return the value if set
-       if (entry && *entry->value)
-               return fmemopen(entry->value, strlen(entry->value), "r");
-
-       return NULL;
-}
-
 int pakfire_config_walk_sections(struct pakfire_config* config,
                pakfire_config_walk_callback callback, void* p) {
        struct pakfire_config_section* default_section = NULL;
index 81d7ffadd12dde0b4707afc110f6fb454d05aa7b..f77c7b3ef7ba3af46e5e3f8488d67ea775885446 100644 (file)
@@ -43,8 +43,6 @@ int pakfire_config_get_bool(struct pakfire_config* config,
        const char* section, const char* key, int _default);
 size_t pakfire_config_get_bytes(struct pakfire_config* config,
        const char* section, const char* key, const size_t _default);
-FILE* pakfire_config_get_fopen(struct pakfire_config* config,
-       const char* section, const char* key);
 
 // Walk
 typedef int (*pakfire_config_walk_callback)