[utilities/qrca] src: Remove left-over NetworkManager mapping tables
Volker Krause <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 50ca740a4082b1b6a3f43e14a233f722ddff03f5 by Volker Krause.
Committed on 24/07/2026 at 13:02.
Pushed by vkrause into branch 'master'.
Remove left-over NetworkManager mapping tables
This has meanwhile moved into networkmanager-qt and isn't used here
anymore.
M +0 -24 src/Qrca.cpp
https://invent.kde.org/utilities/qrca/-/commit/50ca740a4082b1b6a3f43e14a233f722ddff03f5
diff --git a/src/Qrca.cpp b/src/Qrca.cpp
index f03e9a5..f887176 100644
--- a/src/Qrca.cpp
+++ b/src/Qrca.cpp
@@ -194,30 +194,6 @@ bool Qrca::canConnectToWifi() const
#endif
}
-// see https://github.com/zxing/zxing/blob/master/android/src/com/google/zxing/client/android/wifi/WifiConfigManager.java
-// for the details not found in the documentation
-#if HAVE_NETWORKMANAGER
-static struct {
- const char *name;
- NetworkManager::Security8021xSetting::EapMethod method;
-} constexpr const eap_methods[] = {
- {"PEAP", NetworkManager::Security8021xSetting::EapMethodPeap},
- {"PWD", NetworkManager::Security8021xSetting::EapMethodPwd},
- {"TLS", NetworkManager::Security8021xSetting::EapMethodTls},
- {"TTLS", NetworkManager::Security8021xSetting::EapMethodTtls},
-};
-
-static struct {
- const char *name;
- NetworkManager::Security8021xSetting::AuthMethod method;
-} constexpr const auth_methods[] = {
- {"GTC", NetworkManager::Security8021xSetting::AuthMethodGtc},
- {"MSCHAP", NetworkManager::Security8021xSetting::AuthMethodMschap},
- {"MSCHAPV2", NetworkManager::Security8021xSetting::AuthMethodMschapv2},
- {"PAP", NetworkManager::Security8021xSetting::AuthMethodPap},
-};
-#endif
-
void Qrca::connectToWifi(const QString &wifiCode)
{
#if HAVE_NETWORKMANAGER