Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/13876

Change subject: systemc: Get rid of an unused private member in sc_clock.
......................................................................

systemc: Get rid of an unused private member in sc_clock.

It's not useful, and having it makes clang upset.

Change-Id: I51366fd18a287e186c88f08af5c6ba8692779003
---
M src/systemc/channel/sc_clock.cc
1 file changed, 1 insertion(+), 2 deletions(-)



diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc
index 7ab86ee..86a279b 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -47,7 +47,6 @@
 class ClockTick : public ScEvent
 {
   private:
-    ::sc_core::sc_clock *clock;
     ::sc_core::sc_time _period;
     std::string name;
     Process *p;
@@ -57,7 +56,7 @@
     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)
     {

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13876
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I51366fd18a287e186c88f08af5c6ba8692779003
Gerrit-Change-Number: 13876
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to