From a3c8cfd881371b5675b1e714f9953685299e8879 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 29 Jun 2013 21:52:39 +0200 Subject: Remove unused UI message. --- src/drumgizmo.cc | 7 ------- src/message.h | 7 ------- 2 files changed, 14 deletions(-) diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index 5e14179..cd0196c 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -114,13 +114,6 @@ void DrumGizmo::handleMessage(Message *msg) { DEBUG(msg, "got message."); switch(msg->type()) { - case Message::RegisterUIMessage: - { - DEBUG(msg, "got RegisterUIMessage message."); - RegisterUIMessage *m = (RegisterUIMessage*)msg; - ui = m->messagehandler; - } - break; case Message::LoadDrumKit: { DEBUG(msg, "got LoadDrumKitMessage message."); diff --git a/src/message.h b/src/message.h index d51c263..07b0300 100644 --- a/src/message.h +++ b/src/message.h @@ -43,7 +43,6 @@ public: LoadMidimap, // Signal engine to load midimap. EngineSettingsMessage, // Request or receive engine settings. ChangeSettingMessage, // Update named setting in engine. - RegisterUIMessage, // Register new UI message handler } type_t; typedef enum { @@ -119,10 +118,4 @@ public: float value; }; -class RegisterUIMessage : public Message { -public: - type_t type() { return Message::RegisterUIMessage; } - MessageHandler *messagehandler; -}; - #endif/*__DRUMGIZMO_MESSAGE_H__*/ -- cgit v1.2.3