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>
This commit is contained in:
@@ -768,26 +768,6 @@ class EventManager
|
||||
void setCurTick(Tick newVal) { eventq->setCurTick(newVal); }
|
||||
};
|
||||
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user