From 55a0ceadf30fa61cb8cd59448b7902e3a0539462 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 26 Mar 2022 10:34:46 +0100 Subject: [PATCH] Removed some obsolere references to legacy message pipes --- plugins/feature/afc/afc.cpp | 9 --------- plugins/feature/demodanalyzer/demodanalyzer.cpp | 5 ----- plugins/feature/jogdialcontroller/jogdialcontroller.cpp | 5 ----- 3 files changed, 19 deletions(-) diff --git a/plugins/feature/afc/afc.cpp b/plugins/feature/afc/afc.cpp index 89090def0..0fa970b26 100644 --- a/plugins/feature/afc/afc.cpp +++ b/plugins/feature/afc/afc.cpp @@ -148,15 +148,6 @@ bool AFC::handleMessage(const Message& cmd) return true; } } - else if (MessagePipesLegacyCommon::MsgReportChannelDeleted::match(cmd)) - { - qDebug() << "AFC::handleMessage: MessagePipesLegacyCommon::MsgReportChannelDeleted"; - MessagePipesLegacyCommon::MsgReportChannelDeleted& report = (MessagePipesLegacyCommon::MsgReportChannelDeleted&) cmd; - const MessagePipesLegacyCommon::ChannelRegistrationKey& channelKey = report.getChannelRegistrationKey(); - MainCore::instance()->getMessagePipesLegacy().unregisterChannelToFeature(channelKey.m_key, this, "settings"); - - return true; - } else if (MsgDeviceTrack::match(cmd)) { if (m_worker->isRunning()) diff --git a/plugins/feature/demodanalyzer/demodanalyzer.cpp b/plugins/feature/demodanalyzer/demodanalyzer.cpp index 2aefe0d87..a81a4d9a1 100644 --- a/plugins/feature/demodanalyzer/demodanalyzer.cpp +++ b/plugins/feature/demodanalyzer/demodanalyzer.cpp @@ -282,7 +282,6 @@ void DemodAnalyzer::applySettings(const DemodAnalyzerSettings& settings, bool fo void DemodAnalyzer::updateChannels() { MainCore *mainCore = MainCore::instance(); - // MessagePipesLegacy& messagePipes = mainCore->getMessagePipesLegacy(); std::vector& deviceSets = mainCore->getDeviceSets(); std::vector::const_iterator it = deviceSets.begin(); m_availableChannels.clear(); @@ -296,10 +295,6 @@ void DemodAnalyzer::updateChannels() if (deviceSourceEngine || deviceSinkEngine) { - // DeviceSampleSource *deviceSource = deviceSourceEngine->getSource(); - // quint64 deviceCenterFrequency = deviceSource->getCenterFrequency(); - // int basebandSampleRate = deviceSource->getSampleRate(); - for (int chi = 0; chi < (*it)->getNumberOfChannels(); chi++) { ChannelAPI *channel = (*it)->getChannelAt(chi); diff --git a/plugins/feature/jogdialcontroller/jogdialcontroller.cpp b/plugins/feature/jogdialcontroller/jogdialcontroller.cpp index 3837d3524..6e4f14c43 100644 --- a/plugins/feature/jogdialcontroller/jogdialcontroller.cpp +++ b/plugins/feature/jogdialcontroller/jogdialcontroller.cpp @@ -211,7 +211,6 @@ void JogdialController::applySettings(const JogdialControllerSettings& settings, void JogdialController::updateChannels() { MainCore *mainCore = MainCore::instance(); - // MessagePipesLegacy& messagePipes = mainCore->getMessagePipesLegacy(); std::vector& deviceSets = mainCore->getDeviceSets(); std::vector::const_iterator it = deviceSets.begin(); m_availableChannels.clear(); @@ -227,10 +226,6 @@ void JogdialController::updateChannels() if (deviceSourceEngine || deviceSinkEngine) { - // DeviceSampleSource *deviceSource = deviceSourceEngine->getSource(); - // quint64 deviceCenterFrequency = deviceSource->getCenterFrequency(); - // int basebandSampleRate = deviceSource->getSampleRate(); - for (int chi = 0; chi < (*it)->getNumberOfChannels(); chi++) { ChannelAPI *channel = (*it)->getChannelAt(chi);