From 5b182f65bea6093f52ac6c102b67b2d98a0f7214 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 12 Nov 2020 18:40:06 -0700 Subject: [PATCH] transport: remove apparently unnecessary code related to locates with auto-play turned off --- libs/ardour/session_transport.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 9eec75e23b..45275f6980 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -224,18 +224,6 @@ Session::locate (samplepos_t target_sample, bool with_roll, bool with_flush, boo */ bool transport_was_stopped = !_transport_fsm->rolling(); - /* Prevent rolling in the case of calling Session::goto_start while - * SessionConfiguration::get_auto_play == false. - * - * Because _transport_fsm->motion_state == WaitingForLocate after - * calling goto_start, we have to check for _transport_fsm->locating() - * and with_roll here. - */ - - if (!with_roll && _transport_fsm->locating()) { - transport_was_stopped = false; - } - if (!transport_was_stopped && (!auto_play_legal || !config.get_auto_play()) && !with_roll &&