1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Remove TrackListIterator::RemoveCurrent

This commit is contained in:
Paul Licameli
2016-12-29 19:11:53 -05:00
parent 89748cbe3c
commit a0e15cfbbd
3 changed files with 28 additions and 64 deletions

View File

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