sim: remove unused struct priority_compare
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 1 Feb 2013 03:26:29 +0000 (21:26 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 1 Feb 2013 03:26:29 +0000 (21:26 -0600)
src/sim/eventq.hh

index 5d5764a6ab4ae6173e21b19822affacf693b9baf..968be6ca1c897582c60704263667923d9199e8b6 100644 (file)
@@ -296,16 +296,6 @@ class Event : public Serializable
     Priority priority() const { return _priority; }
 
 #ifndef SWIG
-    struct priority_compare
-        : public std::binary_function<Event *, Event *, bool>
-    {
-        bool
-        operator()(const Event *l, const Event *r) const
-        {
-            return l->when() >= r->when() || l->priority() >= r->priority();
-        }
-    };
-
     virtual void serialize(std::ostream &os);
     virtual void unserialize(Checkpoint *cp, const std::string &section);
 #endif