refactor: Remove option to disable AFV aliasing

This commit is contained in:
Lars Toenning
2024-12-30 09:32:43 +01:00
parent edbabe34be
commit 74d87fab82
4 changed files with 5 additions and 25 deletions

View File

@@ -80,10 +80,11 @@ namespace swift::core::context
{
Q_UNUSED(originator)
if (commandLine.isEmpty()) { return false; }
CSimpleCommandParser parser({ ".vol", ".volume", // output volume
".mute", // mute
".unmute", // unmute
".aliased" });
CSimpleCommandParser parser({
".vol", ".volume", // output volume
".mute", // mute
".unmute", // unmute
});
parser.parse(commandLine);
if (!parser.isKnownCommand()) { return false; }
@@ -103,14 +104,6 @@ namespace swift::core::context
this->setMasterOutputVolume(v);
return true;
}
else if (afvClient() && parser.matchesCommand(".aliased") && parser.countParts() > 1)
{
const bool enable = parser.toBool(1, true);
afvClient()->enableAliasedStations(enable);
CLogMessage(this).info(u"Aliased stations are: %1") << boolToOnOff(enable);
return true;
}
return false;
}

View File

@@ -233,7 +233,6 @@ namespace swift::core
swift::misc::CSimpleCommandParser::registerCommand({ ".mute", "mute audio" });
swift::misc::CSimpleCommandParser::registerCommand({ ".unmute", "unmute audio" });
swift::misc::CSimpleCommandParser::registerCommand({ ".vol volume", "volume 0..100" });
swift::misc::CSimpleCommandParser::registerCommand({ ".aliased on|off", "aliased HF frequencies" });
}
// -------- parts which can run in core and GUI, referring to local voice client ------------
@@ -248,7 +247,6 @@ namespace swift::core
//! .mute mute swift::core::context::CContextAudioBase
//! .unmute unmute swift::core::context::CContextAudioBase
//! .vol .volume volume 0..100 set volume swift::core::context::CContextAudioBase
//! .aliased on|off aliased stations swift::core::context::CContextAudioBase
//! </pre>
virtual bool parseCommandLine(const QString &commandLine,
const swift::misc::CIdentifier &originator) override;