Sean Wilson has uploaded this change for review. ( https://gem5-review.googlesource.com/3741

Change subject: sim: Remove DelayFunction
......................................................................

sim: Remove DelayFunction

`DelayFunction` is unused.

Change-Id: I28aa756054c9b121fe4cfa65c393366f26ccb128
Signed-off-by: Sean Wilson <[email protected]>
---
M src/sim/eventq.hh
1 file changed, 0 insertions(+), 20 deletions(-)



diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh
index b138f56..9d3c5c3 100644
--- a/src/sim/eventq.hh
+++ b/src/sim/eventq.hh
@@ -769,26 +769,6 @@
 };

 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:

--
To view, visit https://gem5-review.googlesource.com/3741
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I28aa756054c9b121fe4cfa65c393366f26ccb128
Gerrit-Change-Number: 3741
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Wilson <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to