From eb87b0e2ebb083f6b7faef8955a731099c684b83 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 14 Oct 2024 22:52:37 +0200 Subject: [PATCH] Remove old safety check These days it only produces false positives (locate at start of session export). We leave `ENSURE_PROCESS_THREAD` in place, since it may come in handy at some point (eg. static analysis, documentation) --- libs/ardour/session_transport.cc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 22fc3ee670..02df6e0f59 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -73,18 +73,7 @@ using namespace ARDOUR; using namespace PBD; using namespace Temporal; -#ifdef NDEBUG -# define ENSURE_PROCESS_THREAD do {} while (0) -#else -# define ENSURE_PROCESS_THREAD \ - do { \ - if (!AudioEngine::instance()->in_process_thread() \ - && !loading ()) { \ - PBD::stacktrace (std::cerr, 30); \ - } \ - } while (0) -#endif - +#define ENSURE_PROCESS_THREAD do {} while (0) #define TFSM_EVENT(evtype) { _transport_fsm->enqueue (new TransportFSM::Event (evtype)); } #define TFSM_ROLL() { _transport_fsm->enqueue (new TransportFSM::Event (TransportFSM::StartTransport)); }