diff options
author | Gabe Black <gabeblack@google.com> | 2018-11-02 15:01:50 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-11-05 23:08:15 +0000 |
commit | d0c7e1932b778b3b9dd016f7908fd2649487ec00 (patch) | |
tree | fd5610d9f5d980430675829db87bfd873feb0a14 /src/systemc | |
parent | 66217480be4033a7979997f469128b01048493b7 (diff) | |
download | gem5-d0c7e1932b778b3b9dd016f7908fd2649487ec00.tar.xz |
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 <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r-- | src/systemc/channel/sc_clock.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |