Commit 60b23380 authored by Max Kellermann's avatar Max Kellermann

config/Global: remove unused function config_get_path()

parent d2594c63
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment