remove now-unimplemented IsValid method
This commit is contained in:
@@ -84,10 +84,5 @@ Scheduler::Remove (EventId id, EventKey *key)
|
||||
assert (!RealIsEmpty ());
|
||||
return RealRemove (id, key);
|
||||
}
|
||||
bool
|
||||
Scheduler::IsValid (EventId id)
|
||||
{
|
||||
return RealIsValid (id);
|
||||
}
|
||||
|
||||
}; // namespace ns3
|
||||
|
||||
@@ -71,7 +71,6 @@ class Scheduler {
|
||||
Scheduler::EventKey PeekNextKey (void) const ;
|
||||
void RemoveNext (void);
|
||||
EventImpl *Remove (EventId id, EventKey *key);
|
||||
bool IsValid (EventId id);
|
||||
|
||||
private:
|
||||
/**
|
||||
@@ -113,12 +112,6 @@ private:
|
||||
* 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
|
||||
|
||||
@@ -241,7 +241,6 @@ SimulatorPrivate::Remove (EventId ev)
|
||||
void
|
||||
SimulatorPrivate::Cancel (EventId id)
|
||||
{
|
||||
assert (m_events->IsValid (id));
|
||||
EventImpl *ev = id.GetEventImpl ();
|
||||
ev->Cancel ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user