From 901553ab7401126da0a365e2f74dd0e6d9a06516 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 8 Aug 2020 17:48:18 +0200 Subject: [PATCH] Removed add/remove ancillary sink from device API --- sdrbase/device/deviceapi.cpp | 22 ---------------------- sdrbase/device/deviceapi.h | 2 -- 2 files changed, 24 deletions(-) diff --git a/sdrbase/device/deviceapi.cpp b/sdrbase/device/deviceapi.cpp index 17e3949ee..edcfd682d 100644 --- a/sdrbase/device/deviceapi.cpp +++ b/sdrbase/device/deviceapi.cpp @@ -58,28 +58,6 @@ DeviceAPI::~DeviceAPI() { } -void DeviceAPI::addAncillarySink(BasebandSampleSink *sink, unsigned int index) -{ - if (m_deviceSourceEngine) { - m_deviceSourceEngine->addSink(sink); - } else if (m_deviceSinkEngine) { - m_deviceSinkEngine->addSpectrumSink(sink); - } else if (m_deviceMIMOEngine) { - m_deviceMIMOEngine->addAncillarySink(sink, index); - } -} - -void DeviceAPI::removeAncillarySink(BasebandSampleSink* sink, unsigned int index) -{ - if (m_deviceSourceEngine) { - m_deviceSourceEngine->removeSink(sink); - } else if (m_deviceSinkEngine) { - m_deviceSinkEngine->removeSpectrumSink(sink); - } else if (m_deviceMIMOEngine) { - m_deviceMIMOEngine->removeAncillarySink(sink, index); - } -} - void DeviceAPI::setSpectrumSinkInput(bool sourceElseSink, unsigned int index) { if (m_deviceMIMOEngine) { // In practice this is only used in the MIMO case diff --git a/sdrbase/device/deviceapi.h b/sdrbase/device/deviceapi.h index 6c2821a67..f2e26c842 100644 --- a/sdrbase/device/deviceapi.h +++ b/sdrbase/device/deviceapi.h @@ -66,8 +66,6 @@ public: ); ~DeviceAPI(); - void addAncillarySink(BasebandSampleSink* sink, unsigned int index = 0); //!< Adds a sink to receive full baseband and that is not a channel (e.g. spectrum) - void removeAncillarySink(BasebandSampleSink* sink, unsigned int index = 0); //!< Removes it void setSpectrumSinkInput(bool sourceElseSink = true, unsigned int index = 0); //!< Used in the MIMO case to select which stream is used as input to main spectrum void addChannelSink(BasebandSampleSink* sink, int streamIndex = 0); //!< Add a channel sink (Rx)