From 05cd1460e938fe293d1e3b137becd2d15e59701b Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 30 Sep 2020 08:22:52 +0200 Subject: [PATCH] Removed unused methods from DeviceSet --- sdrsrv/device/deviceset.cpp | 59 ------------------------------------- sdrsrv/device/deviceset.h | 6 ---- 2 files changed, 65 deletions(-) diff --git a/sdrsrv/device/deviceset.cpp b/sdrsrv/device/deviceset.cpp index c28e6820c..4894088ff 100644 --- a/sdrsrv/device/deviceset.cpp +++ b/sdrsrv/device/deviceset.cpp @@ -47,65 +47,6 @@ DeviceSet::~DeviceSet() { } -void DeviceSet::registerRxChannelInstance(const QString& channelName, ChannelAPI* channelAPI) -{ - m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, channelAPI)); - renameChannelInstances(); -} - -void DeviceSet::registerTxChannelInstance(const QString& channelName, ChannelAPI* channelAPI) -{ - m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, channelAPI)); - renameChannelInstances(); -} - -void DeviceSet::registerChannelInstance(const QString& channelName, ChannelAPI* channelAPI) -{ - m_channelInstanceRegistrations.append(ChannelInstanceRegistration(channelName, channelAPI)); - renameChannelInstances(); -} - -void DeviceSet::removeRxChannelInstance(ChannelAPI* channelAPI) -{ - for (ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) - { - if (it->m_channelAPI == channelAPI) - { - m_channelInstanceRegistrations.erase(it); - break; - } - } - - renameChannelInstances(); -} - -void DeviceSet::removeTxChannelInstance(ChannelAPI* channelAPI) -{ - for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) - { - if(it->m_channelAPI == channelAPI) - { - m_channelInstanceRegistrations.erase(it); - break; - } - } - - renameChannelInstances(); -} - -void DeviceSet::removeChannelInstance(ChannelAPI* channelAPI) -{ - for(ChannelInstanceRegistrations::iterator it = m_channelInstanceRegistrations.begin(); it != m_channelInstanceRegistrations.end(); ++it) - { - if(it->m_channelAPI == channelAPI) - { - m_channelInstanceRegistrations.erase(it); - break; - } - } - - renameChannelInstances(); -} void DeviceSet::freeChannels() { diff --git a/sdrsrv/device/deviceset.h b/sdrsrv/device/deviceset.h index a3ec23100..60e34b2c3 100644 --- a/sdrsrv/device/deviceset.h +++ b/sdrsrv/device/deviceset.h @@ -40,12 +40,6 @@ public: ~DeviceSet(); int getNumberOfChannels() const { return m_channelInstanceRegistrations.size(); } - void registerRxChannelInstance(const QString& channelName, ChannelAPI* channelAPI); - void registerTxChannelInstance(const QString& channelName, ChannelAPI* channelAPI); - void registerChannelInstance(const QString& channelName, ChannelAPI* channelAPI); - void removeRxChannelInstance(ChannelAPI* channelAPI); - void removeTxChannelInstance(ChannelAPI* channelAPI); - void removeChannelInstance(ChannelAPI* channelAPI); void freeChannels(); void deleteChannel(int channelIndex); void loadRxChannelSettings(const Preset* preset, PluginAPI *pluginAPI);