From db2ed6ade57a873ae48d37b322cc52c416c4b1d0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 2 Jul 2019 20:15:03 +0200 Subject: [PATCH] Remove unused API -- there is no default backend. --- libs/ardour/ardour/audioengine.h | 1 - libs/ardour/audioengine.cc | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/libs/ardour/ardour/audioengine.h b/libs/ardour/ardour/audioengine.h index 4f8d7a94ba..79aab2ef62 100644 --- a/libs/ardour/ardour/audioengine.h +++ b/libs/ardour/ardour/audioengine.h @@ -68,7 +68,6 @@ class LIBARDOUR_API AudioEngine : public PortManager, public SessionHandlePtr int discover_backends(); std::vector available_backends() const; std::string current_backend_name () const; - boost::shared_ptr set_default_backend (); boost::shared_ptr set_backend (const std::string&, const std::string& arg1, const std::string& arg2); boost::shared_ptr current_backend() const { return _backend; } bool setup_required () const; diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 6b0c70b44c..f49c46a6b9 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -853,16 +853,6 @@ AudioEngine::drop_backend () } } -boost::shared_ptr -AudioEngine::set_default_backend () -{ - if (_backends.empty()) { - return boost::shared_ptr(); - } - - return set_backend (_backends.begin()->first, "", ""); -} - boost::shared_ptr AudioEngine::set_backend (const std::string& name, const std::string& arg1, const std::string& arg2) {