ConfigData: remove unused method DupBlockString()
This commit is contained in:
parent
084fd8df63
commit
d4c2f91182
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue