From: Gabe Black Date: Fri, 2 Nov 2018 22:01:50 +0000 (-0700) Subject: systemc: Get rid of an unused private member in sc_clock. X-Git-Tag: v19.0.0.0~1440 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0c7e1932b778b3b9dd016f7908fd2649487ec00;p=gem5.git systemc: Get rid of an unused private member in sc_clock. 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 Maintainer: Gabe Black --- diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc index 7ab86eeb8..86a279bd3 100644 --- a/src/systemc/channel/sc_clock.cc +++ b/src/systemc/channel/sc_clock.cc @@ -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) {