mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 00:49:33 +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();
|
||||
|
||||
// Some extra information
|
||||
mViewInfo.bIsPlaying = false;
|
||||
mViewInfo.bRedrawWaveform = false;
|
||||
|
||||
mLockPlayRegion = false;
|
||||
|
||||
// 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))
|
||||
{
|
||||
MixerToolBar *mixerToolBar = GetMixerToolBar();
|
||||
|
@ -304,7 +304,6 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
|
||||
void Zoom(double level);
|
||||
void Rewind(bool shift);
|
||||
void SkipEnd(bool shift);
|
||||
void SetStop(bool bStopped);
|
||||
void EditByLabel( WaveTrack::EditFunction action, bool bSyncLockedTracks );
|
||||
void EditClipboardByLabel( WaveTrack::EditDestFunction action );
|
||||
bool IsSyncLocked();
|
||||
|
@ -1737,18 +1737,6 @@ void TrackArtist::DrawSpectrum(WaveTrack *track,
|
||||
viewInfo->selectedRegion.t0(), viewInfo->selectedRegion.t1(),
|
||||
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);
|
||||
for (WaveClipList::compatibility_iterator it = track->GetClipIterator(); it; it = it->GetNext()) {
|
||||
DrawClipSpectrum(cache, it->GetData(), dc, r, viewInfo, autocorrelation, logF);
|
||||
|
@ -866,12 +866,6 @@ void TrackPanel::UpdatePrefs()
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void TrackPanel::SetStop(bool bStopped)
|
||||
{
|
||||
mViewInfo->bIsPlaying = !bStopped;
|
||||
Refresh(false);
|
||||
}
|
||||
|
||||
/// Remembers the track we clicked on and why we captured it.
|
||||
/// We also use this method to clear the record
|
||||
/// 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 SetStop(bool bStopped);
|
||||
|
||||
virtual void Refresh(bool eraseBackground = true,
|
||||
const wxRect *rect = (const wxRect *) NULL);
|
||||
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
|
||||
// drawing the waveform. Maybe this should be put somewhere else?
|
||||
|
||||
bool bRedrawWaveform;
|
||||
bool bUpdateTrackIndicator;
|
||||
|
||||
bool bIsPlaying;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user