diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 22:28:00 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 22:49:10 +0100 |
commit | 616f2f7d7ba9a1b55b6b8dfd592f6e7d3860269e (patch) | |
tree | 64b9539c6653715efc26587c457dc1249ab66dcf | |
parent | 924775a79c07a4f5798fcefddb523b189e473080 (diff) | |
download | patchage-616f2f7d7ba9a1b55b6b8dfd592f6e7d3860269e.tar.gz patchage-616f2f7d7ba9a1b55b6b8dfd592f6e7d3860269e.tar.bz2 patchage-616f2f7d7ba9a1b55b6b8dfd592f6e7d3860269e.zip |
Remove dead code
-rw-r--r-- | src/JackDbusDriver.cpp | 31 | ||||
-rw-r--r-- | src/JackDbusDriver.hpp | 1 | ||||
-rw-r--r-- | src/JackDriver.cpp | 25 | ||||
-rw-r--r-- | src/JackDriver.hpp | 6 |
4 files changed, 0 insertions, 63 deletions
diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp index 4d780a7..28bfb24 100644 --- a/src/JackDbusDriver.cpp +++ b/src/JackDbusDriver.cpp @@ -810,37 +810,6 @@ JackDriver::sample_rate() return sample_rate; } -bool -JackDriver::is_realtime() const -{ - DBusMessage* reply_ptr = nullptr; - dbus_bool_t realtime = false; - auto* me = const_cast<JackDriver*>(this); - - if (!me->call(true, - JACKDBUS_IFACE_CONTROL, - "IsRealtime", - &reply_ptr, - DBUS_TYPE_INVALID)) { - return false; - } - - if (!dbus_message_get_args(reply_ptr, - &me->_dbus_error, - DBUS_TYPE_BOOLEAN, - &realtime, - DBUS_TYPE_INVALID)) { - dbus_message_unref(reply_ptr); - dbus_error_free(&me->_dbus_error); - error_msg("Decoding reply of IsRealtime failed"); - return false; - } - - dbus_message_unref(reply_ptr); - - return realtime; -} - uint32_t JackDriver::get_xruns() { diff --git a/src/JackDbusDriver.hpp b/src/JackDbusDriver.hpp index a40af72..4d08214 100644 --- a/src/JackDbusDriver.hpp +++ b/src/JackDbusDriver.hpp @@ -46,7 +46,6 @@ public: void detach() override; bool is_attached() const override; - bool is_realtime() const; void refresh(const EventSink& sink) override; diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 9046c5d..e4bb52b 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -265,31 +265,6 @@ JackDriver::refresh(const EventSink& sink) } bool -JackDriver::port_names(const PortID& id, - std::string& module_name, - std::string& port_name) -{ - jack_port_t* jack_port = nullptr; - - if (id.type() == PortID::Type::jack) { - jack_port = jack_port_by_name(_client, id.jack_name().c_str()); - } - - if (!jack_port) { - module_name.clear(); - port_name.clear(); - return false; - } - - const std::string full_name = jack_port_name(jack_port); - - module_name = full_name.substr(0, full_name.find(':')); - port_name = full_name.substr(full_name.find(':') + 1); - - return true; -} - -bool JackDriver::connect(const PortID tail_id, const PortID head_id) { if (!_client) { diff --git a/src/JackDriver.hpp b/src/JackDriver.hpp index 6c9c05e..85fcc0f 100644 --- a/src/JackDriver.hpp +++ b/src/JackDriver.hpp @@ -48,14 +48,8 @@ public: bool is_attached() const override { return (_client != nullptr); } - bool is_realtime() const { return _client && jack_is_realtime(_client); } - void refresh(const EventSink& sink) override; - bool port_names(const PortID& id, - std::string& module_name, - std::string& port_name); - bool connect(PortID tail_id, PortID head_id) override; bool disconnect(PortID tail_id, PortID head_id) override; |