From f320e82be45edad8b15b81f7c80cdbc364ce772f Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 23 Mar 2026 17:49:19 +0000 Subject: [PATCH] Remove some old remote control weirdness. --- RemoteControl.cpp | 34 +--------------------------------- RemoteControl.h | 8 +------- 2 files changed, 2 insertions(+), 40 deletions(-) diff --git a/RemoteControl.cpp b/RemoteControl.cpp index 62deb73..f41a334 100644 --- a/RemoteControl.cpp +++ b/RemoteControl.cpp @@ -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()); -} - diff --git a/RemoteControl.h b/RemoteControl.h index 5fc9317..f017792 100644 --- a/RemoteControl.h +++ b/RemoteControl.h @@ -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;