remove now-unimplemented IsValid method

This commit is contained in:
Mathieu Lacage
2006-12-11 19:37:53 +01:00
parent 394c26b05b
commit 2fe5076375
3 changed files with 0 additions and 13 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -241,7 +241,6 @@ SimulatorPrivate::Remove (EventId ev)
void
SimulatorPrivate::Cancel (EventId id)
{
assert (m_events->IsValid (id));
EventImpl *ev = id.GetEventImpl ();
ev->Cancel ();
}