From: Andreas Sandberg Date: Fri, 4 Sep 2020 14:52:09 +0000 (+0100) Subject: base: Remove unused Debug::All flag X-Git-Tag: v20.1.0.0~123 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15a37b7dc5f3c2ba53c625d6536b756744578cfe;p=gem5.git base: Remove unused Debug::All flag The Debug::All flag doesn't seem to be used. Remove it. Change-Id: I3d6ad1b2f61a2a0a5c52cbc6d520112855946007 Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34117 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/base/debug.cc b/src/base/debug.cc index b165f6482..47febd0cd 100644 --- a/src/base/debug.cc +++ b/src/base/debug.cc @@ -125,35 +125,6 @@ CompoundFlag::disable() k->disable(); } -struct AllFlags : public Flag -{ - AllFlags() - : Flag("All", "All Flags") - {} - - void - enable() - { - FlagsMap::iterator i = allFlags().begin(); - FlagsMap::iterator end = allFlags().end(); - for (; i != end; ++i) - if (i->second != this) - i->second->enable(); - } - - void - disable() - { - FlagsMap::iterator i = allFlags().begin(); - FlagsMap::iterator end = allFlags().end(); - for (; i != end; ++i) - if (i->second != this) - i->second->disable(); - } -}; - -AllFlags theAllFlags; -Flag *const All = &theAllFlags; bool changeFlag(const char *s, bool value) diff --git a/src/base/debug.hh b/src/base/debug.hh index 479a83071..1d35be055 100644 --- a/src/base/debug.hh +++ b/src/base/debug.hh @@ -108,8 +108,6 @@ FlagsMap &allFlags(); Flag *findFlag(const std::string &name); -extern Flag *const All; - bool changeFlag(const char *s, bool value); } // namespace Debug