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

Remove an unreachable piece of scrubbing code

This commit is contained in:
Paul Licameli 2015-07-12 12:26:16 -04:00
parent 08790d2243
commit 54740c348b

View File

@ -3420,12 +3420,7 @@ void TrackPanel::Stretch(int mouseXCoordinate, int trackLeftEdge,
void TrackPanel::SelectionHandleDrag(wxMouseEvent & event, Track *clickedTrack) void TrackPanel::SelectionHandleDrag(wxMouseEvent & event, Track *clickedTrack)
{ {
#ifdef EXPERIMENTAL_SCRUBBING_BASIC #ifdef EXPERIMENTAL_SCRUBBING_BASIC
if (IsScrubbing()) { if (mScrubStartPosition >= 0) {
// May need a screen update.
if (mAutoScrolling)
UpdateSelectionDisplay();
}
else if (mScrubStartPosition >= 0) {
MaybeStartScrubbing(event); MaybeStartScrubbing(event);
// Do nothing more, don't change selection // Do nothing more, don't change selection
return; return;