MCPcopy Create free account
hub / github.com/audacity/audacity / Remove

Method Remove

libraries/lib-track/Track.cpp:587–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587std::shared_ptr<Track> TrackList::Remove(Track &track)
588{
589 auto *t = &track;
590 auto iter = getEnd();
591 auto node = t->GetNode();
592 t->SetOwner({}, {});
593
594 std::shared_ptr<Track> holder;
595 if (!isNull(node)) {
596 holder = *node;
597
598 iter = getNext(node);
599 erase(node);
600 if (!isNull(iter))
601 RecalcPositions(iter);
602
603 DeletionEvent(t->shared_from_this(), false);
604 }
605 return holder;
606}
607
608void TrackList::Clear(bool sendEvent)
609{

Callers 5

~AddedAnalysisTrackMethod · 0.45
DoEffectMethod · 0.45
CommitMethod · 0.45
ClearPendingTracksMethod · 0.45
ApplyPendingTracksMethod · 0.45

Calls 5

getEndFunction · 0.85
isNullFunction · 0.85
getNextFunction · 0.85
GetNodeMethod · 0.80
SetOwnerMethod · 0.80

Tested by

no test coverage detected