Clean up unneeded version checks

With the min. version bumped, those can be safely removed
This commit is contained in:
Alexander Lohnau
2023-07-21 12:51:06 +03:00
committed by Albert Vaca Cintora
parent 1ee75463e0
commit ac3d439a2a
4 changed files with 2 additions and 32 deletions

View File

@@ -77,10 +77,7 @@ void RunCommandPlugin::sendConfig()
{
QString commands = config()->getString(QStringLiteral("commands"), QStringLiteral("{}"));
NetworkPacket np(PACKET_TYPE_RUNCOMMAND, {{QStringLiteral("commandList"), commands}});
#if KCMUTILS_VERSION >= QT_VERSION_CHECK(5, 45, 0)
np.set<bool>(QStringLiteral("canAddCommand"), true);
#endif
sendPacket(np);
}