diff options
author | Robin Gareus <robin@gareus.org> | 2019-02-21 00:24:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-02-21 00:24:56 +0100 |
commit | e48fe0fd421a46cff5993f777901248cbbd23a81 (patch) | |
tree | 72e8a8e379173e3f26278e159ba4eca9f4f71dd9 /libs/ardour/session_transport.cc | |
parent | c3a7c7c45236ed9eb3adba65556f414b9048dd5d (diff) |
Remove more cruft (unused rf-scale)
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index f4c35372ed..17a0f4de8d 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -512,8 +512,6 @@ Session::butler_transport_work () if (ptw & PostTransportReverse) { clear_clicks(); - cumulative_rf_motion = 0; - reset_rf_scale (0); /* don't seek if locate will take care of that in non_realtime_stop() */ @@ -785,9 +783,6 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished) auditioner->cancel_audition (); } - cumulative_rf_motion = 0; - reset_rf_scale (0); - if (did_record) { begin_reversible_command (Operations::capture); _have_captured = true; @@ -1713,26 +1708,6 @@ Session::post_transport () } void -Session::reset_rf_scale (samplecnt_t motion) -{ - cumulative_rf_motion += motion; - - if (cumulative_rf_motion < 4 * _current_sample_rate) { - rf_scale = 1; - } else if (cumulative_rf_motion < 8 * _current_sample_rate) { - rf_scale = 4; - } else if (cumulative_rf_motion < 16 * _current_sample_rate) { - rf_scale = 10; - } else { - rf_scale = 100; - } - - if (motion != 0) { - set_dirty(); - } -} - -void Session::unset_play_range () { _play_range = false; |