mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-19 23:21:33 +01:00
just some cleanups on FIXMEs and unused method parameters
This commit is contained in:
@@ -4170,85 +4170,6 @@ void AudacityProject::OnSplitNew()
|
||||
RedrawProject();
|
||||
}
|
||||
|
||||
//void AudacityProject::OnSplitLabelsToTracks()
|
||||
//{
|
||||
// TrackListIterator iter(mTracks);
|
||||
//
|
||||
// Track *n = iter.First();
|
||||
// Track *srcRight = 0;
|
||||
// Track *srcLeft = 0;
|
||||
// bool stereo = false;
|
||||
// LabelTrack *label = 0;
|
||||
//
|
||||
// while(n) {
|
||||
// if(n->GetSelected()) {
|
||||
// if(n->GetKind() == Track::Wave) {
|
||||
// if(n->GetLinked() == true) {
|
||||
// stereo = true;
|
||||
// srcLeft = n;
|
||||
// srcRight = iter.Next();
|
||||
// }
|
||||
// else {
|
||||
// srcRight = n;
|
||||
// stereo = false;
|
||||
// }
|
||||
// }
|
||||
// else if(n->GetKind() == Track::Label)
|
||||
// label = (LabelTrack*)n; // cast necessary to call LabelTrack specific methods
|
||||
// }
|
||||
// n = iter.Next();
|
||||
// }
|
||||
//
|
||||
// wxASSERT(label); // per Vigilant Sentry report on possible null deref, FIXME: Report error or validate?
|
||||
// for(int i = 0; i < label->GetNumLabels(); i++) {
|
||||
// wxString name = label->GetLabel(i)->title;
|
||||
// double begin = label->GetLabel(i)->t;
|
||||
// double end;
|
||||
//
|
||||
// // if on the last label, extend to the end of the wavetrack
|
||||
// if(i == label->GetNumLabels() - 1) {
|
||||
// if(stereo)
|
||||
// end = wxMax(srcLeft->GetEndTime(), srcRight->GetEndTime());
|
||||
// else
|
||||
// end = srcLeft->GetEndTime();
|
||||
// }
|
||||
// else
|
||||
// end = label->GetLabel(i+1)->t;
|
||||
//
|
||||
// Track *destLeft = 0;
|
||||
// Track *destRight = 0;
|
||||
//
|
||||
// srcLeft->Copy(begin, end, &destLeft);
|
||||
// if (destLeft) {
|
||||
// destLeft->Init(*srcLeft);
|
||||
// destLeft->SetOffset(wxMax(begin, srcLeft->GetOffset()));
|
||||
// destLeft->SetName(name);
|
||||
//
|
||||
// mTracks->Add(destLeft);
|
||||
// }
|
||||
//
|
||||
// if(stereo) {
|
||||
// srcRight->Copy(begin, end, &destRight);
|
||||
// if (destRight) {
|
||||
// destRight->Init(*srcRight);
|
||||
// destRight->SetOffset(wxMax(begin, srcRight->GetOffset()));
|
||||
// destRight->SetName(name);
|
||||
//
|
||||
// mTracks->Add(destRight);
|
||||
// }
|
||||
// else if(destLeft)
|
||||
// // account for possibility of a non-aligned linked track, which could
|
||||
// // cause the left channel to be eligible for creating a new track,
|
||||
// // but not the right.
|
||||
// destLeft->SetLinked(false);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// PushState(_("Split at labels"), _("Split at Labels"));
|
||||
//
|
||||
// RedrawProject();
|
||||
//}
|
||||
|
||||
void AudacityProject::OnSelectAll()
|
||||
{
|
||||
TrackListIterator iter(mTracks);
|
||||
|
||||
Reference in New Issue
Block a user