mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
Removed unused methods from DeviceSet
This commit is contained in:
parent
b17a8c942b
commit
05cd1460e9
@ -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()
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user