1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 09:01:13 +02:00

Remove WaveTrackVRulerControls::DoZoomPreset...

... it became unused at 3797a5227ac4d26e6139b194554fb3543fa62949
This commit is contained in:
Paul Licameli 2019-07-04 13:20:37 -04:00
parent e2a2cf3edb
commit 4a19a3625b
2 changed files with 0 additions and 24 deletions

View File

@ -57,29 +57,6 @@ std::vector<UIHandlePtr> WaveTrackVRulerControls::HitTest
return results;
}
void WaveTrackVRulerControls::DoZoomPreset( int i)
{
const auto pTrack = FindTrack();
if (!pTrack)
return;
const auto wt = static_cast<WaveTrack*>(pTrack.get());
// Don't do all channels, that causes problems when updating display
// during recording and there are special pending tracks.
// This function implements WaveTrack::DoSetMinimized which is always
// called in a context that loops over linked tracks too and reinvokes.
using namespace WaveTrackViewConstants;
WaveTrackVZoomHandle::DoZoom(
NULL, wt, false,
(i==1)
? kZoomHalfWave
: kZoom1to1,
wxRect(0,0,0,0), 0,0, true);
}
unsigned WaveTrackVRulerControls::HandleWheelRotation
(const TrackPanelMouseEvent &evt, AudacityProject *pProject)
{

View File

@ -33,7 +33,6 @@ public:
unsigned HandleWheelRotation
(const TrackPanelMouseEvent &event,
AudacityProject *pProject) override;
void DoZoomPreset( int i);
private:
// TrackPanelDrawable implementation
void Draw(