From 4c72f54bbc873d048c32b2d79cb954d860281fe4 Mon Sep 17 00:00:00 2001 From: Raine Makelainen Date: Tue, 26 Nov 2019 16:35:33 +0200 Subject: [PATCH] [settings-vpn] Remove obsoleted signal from use. Contributes to JB#48087 --- src/settingsvpnmodel.cpp | 11 ----------- src/settingsvpnmodel.h | 1 - 2 files changed, 12 deletions(-) diff --git a/src/settingsvpnmodel.cpp b/src/settingsvpnmodel.cpp index 7a500a4..5e20bad 100644 --- a/src/settingsvpnmodel.cpp +++ b/src/settingsvpnmodel.cpp @@ -71,7 +71,6 @@ SettingsVpnModel::SettingsVpnModel(QObject* parent) connect(manager, &VpnManager::connectionAdded, this, &SettingsVpnModel::connectionAdded, Qt::UniqueConnection); connect(manager, &VpnManager::connectionRemoved, this, &SettingsVpnModel::connectionRemoved, Qt::UniqueConnection); connect(manager, &VpnManager::connectionsRefreshed, this, &SettingsVpnModel::connectionsRefreshed, Qt::UniqueConnection); - connect(manager, &VpnManager::connectionsClearingAll, this, &SettingsVpnModel::connectionsClearingAll, Qt::UniqueConnection); } SettingsVpnModel::~SettingsVpnModel() @@ -321,16 +320,6 @@ void SettingsVpnModel::connectionRemoved(const QString &path) } } -void SettingsVpnModel::connectionsClearingAll() -{ - qCDebug(lcVpnLog) << "VPN clearing all connections"; - QVector connections = vpnManager()->connections(); - for (VpnConnection *conn : connections) { - disconnect(conn, 0, this, 0); - } -} - - void SettingsVpnModel::connectionsRefreshed() { qCDebug(lcVpnLog) << "VPN connections refreshed"; diff --git a/src/settingsvpnmodel.h b/src/settingsvpnmodel.h index a60d723..ee167fd 100644 --- a/src/settingsvpnmodel.h +++ b/src/settingsvpnmodel.h @@ -102,7 +102,6 @@ class SYSTEMSETTINGS_EXPORT SettingsVpnModel : public VpnModel private Q_SLOTS: void connectionAdded(const QString &path); void connectionRemoved(const QString &path); - void connectionsClearingAll(); void connectionsRefreshed(); void updatedConnectionPosition(); void connectedChanged();