diff options
Diffstat (limited to '')
-rw-r--r-- | src/ConfigData.cxx | 8 | ||||
-rw-r--r-- | src/ConfigData.hxx | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx index 65cb63c97..9655d6400 100644 --- a/src/ConfigData.cxx +++ b/src/ConfigData.cxx @@ -25,8 +25,6 @@ #include "fs/Path.hxx" #include "system/FatalError.hxx" -#include <glib.h> - #include <assert.h> #include <string.h> #include <stdlib.h> @@ -88,12 +86,6 @@ config_param::GetBlockValue(const char *name, const char *default_value) const return bp->value.c_str(); } -char * -config_param::DupBlockString(const char *name, const char *default_value) const -{ - return g_strdup(GetBlockValue(name, default_value)); -} - Path config_param::GetBlockPath(const char *name, const char *default_value, Error &error) const diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 48af72732..83c9bd477 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -105,10 +105,6 @@ struct config_param { const char *GetBlockValue(const char *name, const char *default_value=nullptr) const; - gcc_malloc - char *DupBlockString(const char *name, - const char *default_value=nullptr) const; - /** * Same as config_dup_path(), but looks up the setting in the * specified block. |