config/Param: remove unused "used" flag

This commit is contained in:
Max Kellermann 2018-07-17 20:44:07 +02:00
parent a4eeaff63f
commit 7db0f7c4da
2 changed files with 1 additions and 10 deletions

View File

@ -77,10 +77,7 @@ void config_global_check(void)
const ConfigParam *
config_get_param(ConfigOption option) noexcept
{
auto *param = config_data.params[unsigned(option)];
if (param != nullptr)
param->used = true;
return param;
return config_data.params[unsigned(option)];
}
const ConfigBlock *

View File

@ -38,12 +38,6 @@ struct ConfigParam {
int line;
/**
* This flag is false when nobody has queried the value of
* this option yet.
*/
bool used = false;
explicit ConfigParam(int _line=-1)
:line(_line) {}