1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Removed unused methods from DeviceSet

This commit is contained in:
f4exb 2020-09-30 08:22:52 +02:00
parent b17a8c942b
commit 05cd1460e9
2 changed files with 0 additions and 65 deletions

View File

@ -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()
{

View File

@ -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);