mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Remove TrackListIterator::RemoveCurrent
This commit is contained in:
@@ -523,23 +523,6 @@ Track *TrackListIterator::operator *() const
|
||||
return cur.first->get();
|
||||
}
|
||||
|
||||
Track *TrackListIterator::RemoveCurrent()
|
||||
{
|
||||
if ( !l || l->isNull( cur ) )
|
||||
return nullptr;
|
||||
|
||||
cur = l->Remove( cur.first->get() );
|
||||
|
||||
#ifdef DEBUG_TLI // if we are debugging this bit
|
||||
wxASSERT_MSG((!cur || (*l).Contains((*cur).t)), wxT("cur invalid after deletion of track.")); // check that cur is in the list
|
||||
#endif
|
||||
|
||||
if ( !l->isNull( cur ) )
|
||||
return cur.first->get();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool TrackListIterator::operator == (const TrackListIterator &other) const
|
||||
{
|
||||
// Order these steps so as not to use operator == on default-constructed
|
||||
|
||||
Reference in New Issue
Block a user