summaryrefslogtreecommitdiffstats
path: root/src/Reactor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Reactor.cpp')
-rw-r--r--src/Reactor.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/Reactor.cpp b/src/Reactor.cpp
index f72086d..3c634ab 100644
--- a/src/Reactor.cpp
+++ b/src/Reactor.cpp
@@ -22,13 +22,10 @@
PATCHAGE_DISABLE_FMT_WARNINGS
#include <fmt/core.h>
-#include <fmt/ostream.h> // IWYU pragma: keep
PATCHAGE_RESTORE_WARNINGS
#include <boost/variant/apply_visitor.hpp>
-#include <ostream>
-
namespace patchage {
class SettingVisitor
@@ -50,19 +47,6 @@ private:
Configuration& _conf;
};
-inline std::ostream&
-operator<<(std::ostream& os, const ClientType type)
-{
- switch (type) {
- case ClientType::jack:
- return os << "JACK";
- case ClientType::alsa:
- return os << "ALSA";
- }
-
- return os;
-}
-
Reactor::Reactor(Configuration& conf,
Drivers& drivers,
Canvas& canvas,
@@ -127,7 +111,7 @@ Reactor::operator()(const action::DisconnectPorts& action)
if (auto* d = _drivers.driver(action.tail.type())) {
d->disconnect(action.tail, action.head);
} else {
- _log.error(fmt::format("No driver for {}", action.tail.type()));
+ _log.error(fmt::format("No driver available to disconnect ports"));
}
} else {
_log.error("Unable to disconnect incompatible ports");