diff --git a/linphone-desktop/resources.qrc b/linphone-desktop/resources.qrc index cd00d54ce..12b7ad238 100644 --- a/linphone-desktop/resources.qrc +++ b/linphone-desktop/resources.qrc @@ -203,7 +203,6 @@ ui/modules/Common/Form/TransparentComboBox.qml ui/modules/Common/Form/TransparentTextInput.qml ui/modules/Common/Helpers/InvertedMouseArea.qml - ui/modules/Common/Helpers/SmartConnect.qml ui/modules/Common/Image/Icon.qml ui/modules/Common/Image/RoundedImage.qml ui/modules/Common/Menu/ActionMenuEntry.qml diff --git a/linphone-desktop/ui/modules/Common/Helpers/SmartConnect.qml b/linphone-desktop/ui/modules/Common/Helpers/SmartConnect.qml deleted file mode 100644 index 982be4fc1..000000000 --- a/linphone-desktop/ui/modules/Common/Helpers/SmartConnect.qml +++ /dev/null @@ -1,31 +0,0 @@ -import QtQuick 2.7 - -import Utils 1.0 - -// ============================================================================= - -Item { - property var handlers: ({}) - - function connect (emitter, signalName, handler) { - emitter[signalName].connect(handler) - - if (!handlers[signalName]) { - handlers[signalName] = [] - } - - handlers[signalName].push([emitter, handler]) - } - - Component.onDestruction: { - for (var signalName in handlers) { - handlers[signalName].forEach(function (value) { - var component = value[0][signalName] - - if (component) { - component.disconnect(value[1]) - } - }) - } - } -} diff --git a/linphone-desktop/ui/modules/Common/qmldir b/linphone-desktop/ui/modules/Common/qmldir index e0fd2b966..8e1f5aeba 100644 --- a/linphone-desktop/ui/modules/Common/qmldir +++ b/linphone-desktop/ui/modules/Common/qmldir @@ -50,7 +50,6 @@ TabButton 1.0 Form/Tab/TabButton.qml TabContainer 1.0 Form/Tab/TabContainer.qml InvertedMouseArea 1.0 Helpers/InvertedMouseArea.qml -SmartConnect 1.0 Helpers/SmartConnect.qml Icon 1.0 Image/Icon.qml RoundedImage 1.0 Image/RoundedImage.qml