diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 17:09:03 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 21:09:38 +0100 |
commit | 032b4951d503f7085526ed03f98e8f19b5dea459 (patch) | |
tree | 09af8aa40977efff3a7ba2a737cc6043ab887401 /src | |
parent | d001bb42d6a8854d51bfb1d3df5015f66fb8444d (diff) | |
download | patchage-032b4951d503f7085526ed03f98e8f19b5dea459.tar.gz patchage-032b4951d503f7085526ed03f98e8f19b5dea459.tar.bz2 patchage-032b4951d503f7085526ed03f98e8f19b5dea459.zip |
Remove NoopEvent
Diffstat (limited to 'src')
-rw-r--r-- | src/PatchageEvent.hpp | 6 | ||||
-rw-r--r-- | src/handle_event.cpp | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/PatchageEvent.hpp b/src/PatchageEvent.hpp index 02d224a..2a87a2e 100644 --- a/src/PatchageEvent.hpp +++ b/src/PatchageEvent.hpp @@ -24,9 +24,6 @@ #include <string> -struct NoopEvent -{}; - struct ClientCreationEvent { ClientID id; @@ -60,8 +57,7 @@ struct DisconnectionEvent }; /// An event from drivers that is processed by the GUI -using PatchageEvent = boost::variant<NoopEvent, - ClientCreationEvent, +using PatchageEvent = boost::variant<ClientCreationEvent, ClientDestructionEvent, PortCreationEvent, PortDestructionEvent, diff --git a/src/handle_event.cpp b/src/handle_event.cpp index acd2420..47b2557 100644 --- a/src/handle_event.cpp +++ b/src/handle_event.cpp @@ -51,8 +51,6 @@ public: : _patchage{patchage} {} - void operator()(const NoopEvent&) {} - void operator()(const ClientCreationEvent&) { // Don't create empty modules, they will be created when ports are added |