config/Global: remove unused function config_get_path()
This commit is contained in:
parent
d2594c6380
commit
60b2338091
|
@ -114,7 +114,7 @@ struct ConfigBlock {
|
|||
const char *default_value=nullptr) const noexcept;
|
||||
|
||||
/**
|
||||
* Same as config_get_path(), but looks up the setting in the
|
||||
* Same as ConfigData::GetPath(), but looks up the setting in the
|
||||
* specified block.
|
||||
*
|
||||
* Throws #std::runtime_error on error.
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "Path.hxx"
|
||||
#include "Domain.hxx"
|
||||
#include "fs/Path.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
|
@ -95,12 +94,6 @@ config_get_string(ConfigOption option, const char *default_value) noexcept
|
|||
return config_data.GetString(option, default_value);
|
||||
}
|
||||
|
||||
AllocatedPath
|
||||
config_get_path(ConfigOption option)
|
||||
{
|
||||
return config_data.GetPath(option);
|
||||
}
|
||||
|
||||
unsigned
|
||||
config_get_positive(ConfigOption option, unsigned default_value)
|
||||
{
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "Compiler.h"
|
||||
|
||||
class Path;
|
||||
class AllocatedPath;
|
||||
struct ConfigData;
|
||||
struct ConfigParam;
|
||||
struct ConfigBlock;
|
||||
|
@ -61,16 +60,6 @@ const char *
|
|||
config_get_string(enum ConfigOption option,
|
||||
const char *default_value=nullptr) noexcept;
|
||||
|
||||
/**
|
||||
* Returns an optional configuration variable which contains an
|
||||
* absolute path. If there is a tilde prefix, it is expanded.
|
||||
* Returns nullptr if the value is not present.
|
||||
*
|
||||
* Throws #std::runtime_error on error.
|
||||
*/
|
||||
AllocatedPath
|
||||
config_get_path(enum ConfigOption option);
|
||||
|
||||
unsigned
|
||||
config_get_positive(enum ConfigOption option, unsigned default_value);
|
||||
|
||||
|
|
Loading…
Reference in New Issue