config/Global: remove unused function config_get_path()
This commit is contained in:
@@ -114,7 +114,7 @@ struct ConfigBlock {
|
|||||||
const char *default_value=nullptr) const noexcept;
|
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.
|
* specified block.
|
||||||
*
|
*
|
||||||
* Throws #std::runtime_error on error.
|
* Throws #std::runtime_error on error.
|
||||||
|
@@ -26,7 +26,6 @@
|
|||||||
#include "Path.hxx"
|
#include "Path.hxx"
|
||||||
#include "Domain.hxx"
|
#include "Domain.hxx"
|
||||||
#include "fs/Path.hxx"
|
#include "fs/Path.hxx"
|
||||||
#include "fs/AllocatedPath.hxx"
|
|
||||||
#include "util/RuntimeError.hxx"
|
#include "util/RuntimeError.hxx"
|
||||||
#include "Log.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);
|
return config_data.GetString(option, default_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
AllocatedPath
|
|
||||||
config_get_path(ConfigOption option)
|
|
||||||
{
|
|
||||||
return config_data.GetPath(option);
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned
|
unsigned
|
||||||
config_get_positive(ConfigOption option, unsigned default_value)
|
config_get_positive(ConfigOption option, unsigned default_value)
|
||||||
{
|
{
|
||||||
|
@@ -24,7 +24,6 @@
|
|||||||
#include "Compiler.h"
|
#include "Compiler.h"
|
||||||
|
|
||||||
class Path;
|
class Path;
|
||||||
class AllocatedPath;
|
|
||||||
struct ConfigData;
|
struct ConfigData;
|
||||||
struct ConfigParam;
|
struct ConfigParam;
|
||||||
struct ConfigBlock;
|
struct ConfigBlock;
|
||||||
@@ -61,16 +60,6 @@ const char *
|
|||||||
config_get_string(enum ConfigOption option,
|
config_get_string(enum ConfigOption option,
|
||||||
const char *default_value=nullptr) noexcept;
|
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
|
unsigned
|
||||||
config_get_positive(enum ConfigOption option, unsigned default_value);
|
config_get_positive(enum ConfigOption option, unsigned default_value);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user