1
0
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:
Paul Licameli 2015-05-29 00:13:50 -04:00
parent 28e9ed8c21
commit 6810095509
6 changed files with 0 additions and 33 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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);

View File

@ -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.

View File

@ -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);

View File

@ -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