ConfigData: remove unused method DupBlockString()

This commit is contained in:
Max Kellermann 2013-10-15 23:19:44 +02:00
parent 084fd8df63
commit d4c2f91182
2 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -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.