From 7db0f7c4dab1e3bd70ef5e3039299c33d4c8382a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 17 Jul 2018 20:44:07 +0200 Subject: [PATCH] config/Param: remove unused "used" flag --- src/config/Global.cxx | 5 +---- src/config/Param.hxx | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/config/Global.cxx b/src/config/Global.cxx index 0431937c2..e929e0dbf 100644 --- a/src/config/Global.cxx +++ b/src/config/Global.cxx @@ -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 * diff --git a/src/config/Param.hxx b/src/config/Param.hxx index 2b03caf2f..e3346f7e0 100644 --- a/src/config/Param.hxx +++ b/src/config/Param.hxx @@ -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) {}