config/Global: remove unused function config_find_block()

This commit is contained in:
Max Kellermann 2018-07-17 22:15:10 +02:00
parent f18695eb45
commit 696add259b
3 changed files with 6 additions and 16 deletions

View File

@ -44,7 +44,13 @@ struct ConfigData {
}
/**
* Find a block with a matching attribute.
*
* Throws if a block doesn't have the specified (mandatory) key.
*
* @param option the blocks to search
* @param key the attribute name
* @param value the expected attribute value
*/
gcc_pure
const ConfigBlock *FindBlock(ConfigBlockOption option,

View File

@ -92,12 +92,6 @@ config_get_block(ConfigBlockOption option) noexcept
return config_data.GetBlock(option);
}
const ConfigBlock *
config_find_block(ConfigBlockOption option, const char *key, const char *value)
{
return config_data.FindBlock(option, key, value);
}
const char *
config_get_string(ConfigOption option, const char *default_value) noexcept
{

View File

@ -59,16 +59,6 @@ gcc_pure
const ConfigBlock *
config_get_block(enum ConfigBlockOption option) noexcept;
/**
* Find a block with a matching attribute.
*
* @param option the blocks to search
* @param key the attribute name
* @param value the expected attribute value
*/
const ConfigBlock *
config_find_block(ConfigBlockOption option, const char *key, const char *value);
const char *
config_get_string(enum ConfigOption option,
const char *default_value=nullptr) noexcept;