From a9cda881d62b7bb8d8a7510d9857d579700a4e0c Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 16 May 2016 18:16:00 +0200 Subject: [PATCH] Multi device support: removed useless handle message method in plugin manager --- sdrbase/plugin/pluginmanager.cpp | 52 ++++++++++++++++---------------- sdrbase/plugin/pluginmanager.h | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/sdrbase/plugin/pluginmanager.cpp b/sdrbase/plugin/pluginmanager.cpp index a9c1684cf..b82c0c414 100644 --- a/sdrbase/plugin/pluginmanager.cpp +++ b/sdrbase/plugin/pluginmanager.cpp @@ -221,32 +221,32 @@ void PluginManager::freeAll() } } -bool PluginManager::handleMessage(const Message& message) -{ - if (m_sampleSourcePluginGUI != 0) - { - if ((message.getDestination() == 0) || (message.getDestination() == m_sampleSourcePluginGUI)) - { - if (m_sampleSourcePluginGUI->handleMessage(message)) - { - return true; - } - } - } - - for (ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) - { - if ((message.getDestination() == 0) || (message.getDestination() == it->m_gui)) - { - if (it->m_gui->handleMessage(message)) - { - return true; - } - } - } - - return false; -} +//bool PluginManager::handleMessage(const Message& message) +//{ +// if (m_sampleSourcePluginGUI != 0) +// { +// if ((message.getDestination() == 0) || (message.getDestination() == m_sampleSourcePluginGUI)) +// { +// if (m_sampleSourcePluginGUI->handleMessage(message)) +// { +// return true; +// } +// } +// } +// +// for (ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) +// { +// if ((message.getDestination() == 0) || (message.getDestination() == it->m_gui)) +// { +// if (it->m_gui->handleMessage(message)) +// { +// return true; +// } +// } +// } +// +// return false; +//} void PluginManager::updateSampleSourceDevices() { diff --git a/sdrbase/plugin/pluginmanager.h b/sdrbase/plugin/pluginmanager.h index d80aa2728..f3f26a943 100644 --- a/sdrbase/plugin/pluginmanager.h +++ b/sdrbase/plugin/pluginmanager.h @@ -54,7 +54,7 @@ public: void freeAll(); - bool handleMessage(const Message& message); +// bool handleMessage(const Message& message); void updateSampleSourceDevices(); void fillSampleSourceSelector(QComboBox* comboBox);