diff options
author | Sean Wilson <spwilson2@wisc.edu> | 2017-06-06 13:46:51 -0500 |
---|---|---|
committer | Sean Wilson <spwilson2@wisc.edu> | 2017-06-20 18:03:21 +0000 |
commit | 6de8267fbf74f6be13e9381fe03d9014c211e1e8 (patch) | |
tree | 505e0840a0e966b8e7e18ad16bf6dff3b48f3265 | |
parent | 09faca2b3fa4a489f1769c912b8f05fea2fcd45b (diff) | |
download | gem5-6de8267fbf74f6be13e9381fe03d9014c211e1e8.tar.xz |
sim: Remove DelayFunction
`DelayFunction` is unused.
Change-Id: I28aa756054c9b121fe4cfa65c393366f26ccb128
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3741
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
-rw-r--r-- | src/sim/eventq.hh | 20 |
1 files changed, 0 insertions, 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 @@ -769,26 +769,6 @@ class EventManager }; template <class T, void (T::* F)()> -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 T, void (T::* F)()> class EventWrapper : public Event { private: |