config/Global: remove unused function config_find_block()
This commit is contained in:
parent
f18695eb45
commit
696add259b
@ -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,
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user