mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +02:00
Removed unused functions of LabelTrack, but was there an error?
This commit is contained in:
parent
970205527b
commit
ba4006a454
@ -184,6 +184,7 @@ bool LabelTrack::Clear(double b, double e)
|
||||
return true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
//used when we want to use clear only on the labels
|
||||
bool LabelTrack::SplitDelete(double b, double e)
|
||||
{
|
||||
@ -204,6 +205,8 @@ bool LabelTrack::SplitDelete(double b, double e)
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void LabelTrack::ShiftLabelsOnInsert(double length, double pt)
|
||||
{
|
||||
for (unsigned int i=0;i<mLabels.GetCount();i++) {
|
||||
@ -2405,6 +2408,7 @@ bool LabelTrack::Cut(double t0, double t1, Track **dest)
|
||||
return true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
bool LabelTrack::SplitCut(double t0, double t1, Track ** dest)
|
||||
{
|
||||
// SplitCut() == Copy() + SplitDelete()
|
||||
@ -2416,6 +2420,7 @@ bool LabelTrack::SplitCut(double t0, double t1, Track ** dest)
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool LabelTrack::Copy(double t0, double t1, Track ** dest)
|
||||
{
|
||||
|
@ -221,8 +221,11 @@ class AUDACITY_DLL_API LabelTrack final : public Track
|
||||
|
||||
// This pastes labels without shifting existing ones
|
||||
bool PasteOver(double t, Track *src);
|
||||
bool SplitCut(double b, double e, Track **dest);
|
||||
bool SplitDelete(double b, double e);
|
||||
|
||||
// PRL: These functions were not used because they were not overrides! Was that right?
|
||||
//bool SplitCut(double b, double e, Track **dest) /* not override */;
|
||||
//bool SplitDelete(double b, double e) /* not override */;
|
||||
|
||||
void ShiftLabelsOnInsert(double length, double pt);
|
||||
void ChangeLabelsOnReverse(double b, double e);
|
||||
void ScaleLabels(double b, double e, double change);
|
||||
|
Loading…
x
Reference in New Issue
Block a user