base: Remove unused Debug::All flag
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 4 Sep 2020 14:52:09 +0000 (15:52 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 7 Sep 2020 08:42:07 +0000 (08:42 +0000)
The Debug::All flag doesn't seem to be used. Remove it.

Change-Id: I3d6ad1b2f61a2a0a5c52cbc6d520112855946007
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34117
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/debug.cc
src/base/debug.hh

index b165f6482c1d01c9440907cf2b65d397153898a2..47febd0cd7e8f8d0ea9908aa0148be17a3a9ceaa 100644 (file)
@@ -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)
index 479a830716b0ab90b7f4a6eb0f209cd6e03f765a..1d35be055a81d577c3998e149cbd881a9ce6fad0 100644 (file)
@@ -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