Remove some old remote control weirdness.

This commit is contained in:
Jonathan Naylor 2026-03-23 17:49:19 +00:00
parent 7bbd64c386
commit f320e82be4
2 changed files with 2 additions and 40 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2019,2021,2023,2025 by Jonathan Naylor G4KLX
* Copyright (C) 2019,2021,2023,2025,2026 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -126,35 +126,3 @@ REMOTE_COMMAND CRemoteControl::processCommand(const std::string& command)
return m_command;
}
unsigned int CRemoteControl::getArgCount() const
{
switch (m_command) {
default:
return 0U;
}
}
std::string CRemoteControl::getArgString(unsigned int n) const
{
switch (m_command) {
default:
return "";
}
if (n >= m_args.size())
return "";
return m_args.at(n);
}
unsigned int CRemoteControl::getArgUInt(unsigned int n) const
{
return (unsigned int)::atoi(getArgString(n).c_str());
}
int CRemoteControl::getArgInt(unsigned int n) const
{
return ::atoi(getArgString(n).c_str());
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2019,2021,2023,2025 by Jonathan Naylor G4KLX
* Copyright (C) 2019,2021,2023,2025,2026 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -57,12 +57,6 @@ public:
REMOTE_COMMAND processCommand(const std::string& command);
unsigned int getArgCount() const;
std::string getArgString(unsigned int n) const;
unsigned int getArgUInt(unsigned int n) const;
signed int getArgInt(unsigned int n) const;
private:
CDMRGateway* m_host;
REMOTE_COMMAND m_command;