From 9a12733508e47f558959f1b0ed9937bc3eff8962 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 27 Jul 2019 12:10:43 +0300 Subject: [PATCH] Remove unused m_debug_only member from Arg struct --- src/util/system.cpp | 2 +- src/util/system.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/system.cpp b/src/util/system.cpp index 4610d1fb7e..75dbc72e77 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -549,7 +549,7 @@ void ArgsManager::AddArg(const std::string& name, const std::string& help, unsig LOCK(cs_args); std::map& arg_map = m_available_args[cat]; - auto ret = arg_map.emplace(name.substr(0, eq_index), Arg{name.substr(eq_index, name.size() - eq_index), help, flags, false}); + auto ret = arg_map.emplace(name.substr(0, eq_index), Arg{name.substr(eq_index, name.size() - eq_index), help, flags}); assert(ret.second); // Make sure an insertion actually happened } diff --git a/src/util/system.h b/src/util/system.h index fe3c3b6a61..79fb33a9bd 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -152,7 +152,6 @@ protected: std::string m_help_param; std::string m_help_text; unsigned int m_flags; - bool m_debug_only; }; mutable CCriticalSection cs_args;