remove now-unimplemented IsValid method
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 11 Dec 2006 19:37:53 +0100
changeset 187 be0936ed7c63
parent 186 a6a7a9ae74d9
child 188 1d26db54338c
remove now-unimplemented IsValid method
src/simulator/scheduler.cc
src/simulator/scheduler.h
src/simulator/simulator.cc
--- a/src/simulator/scheduler.cc	Mon Dec 11 19:36:48 2006 +0100
+++ b/src/simulator/scheduler.cc	Mon Dec 11 19:37:53 2006 +0100
@@ -84,10 +84,5 @@
   assert (!RealIsEmpty ());
   return RealRemove (id, key);
 }
-bool 
-Scheduler::IsValid (EventId id)
-{
-  return RealIsValid (id);
-}
 
 }; // namespace ns3
--- a/src/simulator/scheduler.h	Mon Dec 11 19:36:48 2006 +0100
+++ b/src/simulator/scheduler.h	Mon Dec 11 19:37:53 2006 +0100
@@ -71,7 +71,6 @@
   Scheduler::EventKey PeekNextKey (void) const ;
   void RemoveNext (void);
   EventImpl *Remove (EventId id, EventKey *key);
-  bool IsValid (EventId id);
 
 private:
   /**
@@ -113,12 +112,6 @@
    * This methods cannot be invoked if the list is empty.
    */
   virtual EventImpl *RealRemove (EventId id, EventKey *key) = 0;
-  /**
-   * \param id event id to validate
-   * \returns true if the event id identifies an existing valid
-   *      event stored in the event list and false otherwise.
-   */
-  virtual bool RealIsValid (EventId id) = 0;
 };
 
 }; // namespace ns3
--- a/src/simulator/simulator.cc	Mon Dec 11 19:36:48 2006 +0100
+++ b/src/simulator/simulator.cc	Mon Dec 11 19:37:53 2006 +0100
@@ -241,7 +241,6 @@
 void
 SimulatorPrivate::Cancel (EventId id)
 {
-  assert (m_events->IsValid (id));
   EventImpl *ev = id.GetEventImpl ();
   ev->Cancel ();
 }