From d0c7e1932b778b3b9dd016f7908fd2649487ec00 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 2 Nov 2018 15:01:50 -0700 Subject: [PATCH] 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 --- src/systemc/channel/sc_clock.cc | 3 +-- 1 file changed, 1 insertion(+), 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) { -- 2.30.2