systemc: Get rid of an unused private member in sc_clock.
authorGabe Black <gabeblack@google.com>
Fri, 2 Nov 2018 22:01:50 +0000 (15:01 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 5 Nov 2018 23:08:15 +0000 (23:08 +0000)
It's not useful, and having it makes clang upset.

Change-Id: I51366fd18a287e186c88f08af5c6ba8692779003
Reviewed-on: https://gem5-review.googlesource.com/c/13876
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/channel/sc_clock.cc

index 7ab86eeb8b241a890562c9d8f7a76ae551b9240c..86a279bd30a27f454bcf10f992c54591b5b841a5 100644 (file)
@@ -47,7 +47,6 @@ namespace sc_gem5
 class ClockTick : public ScEvent
 {
   private:
-    ::sc_core::sc_clock *clock;
     ::sc_core::sc_time _period;
     std::string name;
     Process *p;
@@ -57,7 +56,7 @@ class ClockTick : public ScEvent
     ClockTick(::sc_core::sc_clock *clock, bool to,
             ::sc_core::sc_time _period) :
         ScEvent([this]() { tick(); }),
-        clock(clock), _period(_period), name(clock->basename()), p(nullptr),
+        _period(_period), name(clock->basename()), p(nullptr),
         funcWrapper(clock, to ? &::sc_core::sc_clock::tickUp :
                                 &::sc_core::sc_clock::tickDown)
     {