From 6de8267fbf74f6be13e9381fe03d9014c211e1e8 Mon Sep 17 00:00:00 2001 From: Sean Wilson Date: Tue, 6 Jun 2017 13:46:51 -0500 Subject: [PATCH] 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 --- src/sim/eventq.hh | 20 -------------------- 1 file changed, 20 deletions(-) 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 { -- 2.30.2