mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 17:19:43 +02:00
remove some variables which are set and never read, based on part of a patch by Steve the Fiddle
This commit is contained in:
parent
41be5788cb
commit
77f9609fdf
@ -6476,8 +6476,6 @@ void TrackPanel::ScrollIntoView(int x)
|
||||
|
||||
void TrackPanel::OnCursorLeft( bool shift, bool ctrl )
|
||||
{
|
||||
Track *t;
|
||||
|
||||
// If the last adjustment was very recent, we are
|
||||
// holding the key down and should move faster.
|
||||
wxLongLong curtime = ::wxGetLocalTimeMillis();
|
||||
@ -6488,9 +6486,6 @@ void TrackPanel::OnCursorLeft( bool shift, bool ctrl )
|
||||
}
|
||||
mLastSelectionAdjustment = curtime;
|
||||
|
||||
// Get currently focused track if there is one
|
||||
t = GetFocusedTrack();
|
||||
|
||||
bool snapToTime = (gPrefs->Read(wxT("/SnapTo"), 0L) != 0);
|
||||
|
||||
// Contract selection from the right to the left
|
||||
@ -6585,8 +6580,6 @@ void TrackPanel::OnCursorLeft( bool shift, bool ctrl )
|
||||
|
||||
void TrackPanel::OnCursorRight( bool shift, bool ctrl )
|
||||
{
|
||||
Track *t;
|
||||
|
||||
// If the last adjustment was very recent, we are
|
||||
// holding the key down and should move faster.
|
||||
wxLongLong curtime = ::wxGetLocalTimeMillis();
|
||||
@ -6597,9 +6590,6 @@ void TrackPanel::OnCursorRight( bool shift, bool ctrl )
|
||||
}
|
||||
mLastSelectionAdjustment = curtime;
|
||||
|
||||
// Get currently focused track if there is one
|
||||
t = GetFocusedTrack();
|
||||
|
||||
bool snapToTime = (gPrefs->Read(wxT("/SnapTo"), 0L) != 0);
|
||||
|
||||
// Contract selection from the left to the right
|
||||
@ -6728,8 +6718,6 @@ void TrackPanel::OnBoundaryMove(bool left, bool boundaryContract)
|
||||
// left=true: operate on left boundary; left=false: operate on right boundary
|
||||
// boundaryContract=true: contract region; boundaryContract=false: expand region.
|
||||
|
||||
Track *t;
|
||||
|
||||
// If the last adjustment was very recent, we are
|
||||
// holding the key down and should move faster.
|
||||
wxLongLong curtime = ::wxGetLocalTimeMillis();
|
||||
@ -6759,9 +6747,6 @@ void TrackPanel::OnBoundaryMove(bool left, bool boundaryContract)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Get currently focused track if there is one
|
||||
t = GetFocusedTrack();
|
||||
|
||||
// BOUNDARY MOVEMENT
|
||||
// Contract selection from the right to the left
|
||||
if( boundaryContract )
|
||||
|
Loading…
x
Reference in New Issue
Block a user