From: Sean Wilson Date: Tue, 6 Jun 2017 18:46:51 +0000 (-0500) Subject: sim: Remove DelayFunction X-Git-Tag: v19.0.0.0~2739 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6de8267fbf74f6be13e9381fe03d9014c211e1e8;p=gem5.git sim: Remove DelayFunction `DelayFunction` is unused. Change-Id: I28aa756054c9b121fe4cfa65c393366f26ccb128 Signed-off-by: Sean Wilson Reviewed-on: https://gem5-review.googlesource.com/3741 Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index b138f56b0..9d3c5c36a 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -768,26 +768,6 @@ class EventManager void setCurTick(Tick newVal) { eventq->setCurTick(newVal); } }; -template -void -DelayFunction(EventQueue *eventq, Tick when, T *object) -{ - class DelayEvent : public Event - { - private: - T *object; - - public: - DelayEvent(T *o) - : Event(Default_Pri, AutoDelete), object(o) - { } - void process() { (object->*F)(); } - const char *description() const { return "delay"; } - }; - - eventq->schedule(new DelayEvent(object), when); -} - template class EventWrapper : public Event {