mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Removed some functions never called, code never reached, fields never used
This commit is contained in:
parent
28e9ed8c21
commit
6810095509
@ -827,10 +827,6 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
|||||||
|
|
||||||
UpdatePrefs();
|
UpdatePrefs();
|
||||||
|
|
||||||
// Some extra information
|
|
||||||
mViewInfo.bIsPlaying = false;
|
|
||||||
mViewInfo.bRedrawWaveform = false;
|
|
||||||
|
|
||||||
mLockPlayRegion = false;
|
mLockPlayRegion = false;
|
||||||
|
|
||||||
// Make sure valgrind sees mIsSyncLocked is initialized, even
|
// Make sure valgrind sees mIsSyncLocked is initialized, even
|
||||||
@ -4285,11 +4281,6 @@ void AudacityProject::SetCaptureMeter(Meter *capture)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudacityProject::SetStop(bool bStopped)
|
|
||||||
{
|
|
||||||
mTrackPanel->SetStop(bStopped);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AudacityProject::OnTimer(wxTimerEvent& WXUNUSED(event))
|
void AudacityProject::OnTimer(wxTimerEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
MixerToolBar *mixerToolBar = GetMixerToolBar();
|
MixerToolBar *mixerToolBar = GetMixerToolBar();
|
||||||
|
@ -304,7 +304,6 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
|
|||||||
void Zoom(double level);
|
void Zoom(double level);
|
||||||
void Rewind(bool shift);
|
void Rewind(bool shift);
|
||||||
void SkipEnd(bool shift);
|
void SkipEnd(bool shift);
|
||||||
void SetStop(bool bStopped);
|
|
||||||
void EditByLabel( WaveTrack::EditFunction action, bool bSyncLockedTracks );
|
void EditByLabel( WaveTrack::EditFunction action, bool bSyncLockedTracks );
|
||||||
void EditClipboardByLabel( WaveTrack::EditDestFunction action );
|
void EditClipboardByLabel( WaveTrack::EditDestFunction action );
|
||||||
bool IsSyncLocked();
|
bool IsSyncLocked();
|
||||||
|
@ -1737,18 +1737,6 @@ void TrackArtist::DrawSpectrum(WaveTrack *track,
|
|||||||
viewInfo->selectedRegion.t0(), viewInfo->selectedRegion.t1(),
|
viewInfo->selectedRegion.t0(), viewInfo->selectedRegion.t1(),
|
||||||
viewInfo->h, viewInfo->zoom);
|
viewInfo->h, viewInfo->zoom);
|
||||||
|
|
||||||
if(!viewInfo->bUpdateTrackIndicator && viewInfo->bIsPlaying) {
|
|
||||||
// BG: Draw (undecorated) waveform instead of spectrum
|
|
||||||
DrawWaveform(track, dc, r, viewInfo, false, false, false, false, false);
|
|
||||||
/*
|
|
||||||
// BG: uncomment to draw grey instead of spectrum
|
|
||||||
dc.SetBrush(unselectedBrush);
|
|
||||||
dc.SetPen(unselectedPen);
|
|
||||||
dc.DrawRectangle(r);
|
|
||||||
*/
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
WaveTrackCache cache(track);
|
WaveTrackCache cache(track);
|
||||||
for (WaveClipList::compatibility_iterator it = track->GetClipIterator(); it; it = it->GetNext()) {
|
for (WaveClipList::compatibility_iterator it = track->GetClipIterator(); it; it = it->GetNext()) {
|
||||||
DrawClipSpectrum(cache, it->GetData(), dc, r, viewInfo, autocorrelation, logF);
|
DrawClipSpectrum(cache, it->GetData(), dc, r, viewInfo, autocorrelation, logF);
|
||||||
|
@ -866,12 +866,6 @@ void TrackPanel::UpdatePrefs()
|
|||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackPanel::SetStop(bool bStopped)
|
|
||||||
{
|
|
||||||
mViewInfo->bIsPlaying = !bStopped;
|
|
||||||
Refresh(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Remembers the track we clicked on and why we captured it.
|
/// Remembers the track we clicked on and why we captured it.
|
||||||
/// We also use this method to clear the record
|
/// We also use this method to clear the record
|
||||||
/// of the captured track, passing NULL as the track.
|
/// of the captured track, passing NULL as the track.
|
||||||
|
@ -172,8 +172,6 @@ class AUDACITY_DLL_API TrackPanel:public wxPanel {
|
|||||||
|
|
||||||
virtual void SelectNone();
|
virtual void SelectNone();
|
||||||
|
|
||||||
virtual void SetStop(bool bStopped);
|
|
||||||
|
|
||||||
virtual void Refresh(bool eraseBackground = true,
|
virtual void Refresh(bool eraseBackground = true,
|
||||||
const wxRect *rect = (const wxRect *) NULL);
|
const wxRect *rect = (const wxRect *) NULL);
|
||||||
virtual void RefreshTrack(Track *trk, bool refreshbacking = true);
|
virtual void RefreshTrack(Track *trk, bool refreshbacking = true);
|
||||||
|
@ -51,10 +51,7 @@ struct ViewInfo {
|
|||||||
// Other stuff, mainly states (true or false) related to autoscroll and
|
// Other stuff, mainly states (true or false) related to autoscroll and
|
||||||
// drawing the waveform. Maybe this should be put somewhere else?
|
// drawing the waveform. Maybe this should be put somewhere else?
|
||||||
|
|
||||||
bool bRedrawWaveform;
|
|
||||||
bool bUpdateTrackIndicator;
|
bool bUpdateTrackIndicator;
|
||||||
|
|
||||||
bool bIsPlaying;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user