aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlnotifier.cpp
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2012-05-18 13:23:09 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-18 11:30:32 +0200
commit5821f91abb348ac8d8ad84846b504c5629d2eed8 (patch)
tree46dbbfbb7fef2cc0fd75a6a42620a3d41627c1c9 /src/qml/qml/qqmlnotifier.cpp
parent2d2580838d580edbac22a2cf906a4d6da2d670ef (diff)
Remove dead code from QQmlNotifierEndpoint
The copyAndClear() function is unused and untested. Change-Id: I75cece92e4af691c03c6b7251be3182fa10cfe6c Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlnotifier.cpp')
-rw-r--r--src/qml/qml/qqmlnotifier.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/qml/qml/qqmlnotifier.cpp b/src/qml/qml/qqmlnotifier.cpp
index 20b90a7111..2bae7f64b0 100644
--- a/src/qml/qml/qqmlnotifier.cpp
+++ b/src/qml/qml/qqmlnotifier.cpp
@@ -96,38 +96,5 @@ void QQmlNotifierEndpoint::connect(QObject *source, int sourceSignal, QQmlEngine
ddata->addNotify(sourceSignal, this);
}
-void QQmlNotifierEndpoint::copyAndClear(QQmlNotifierEndpoint &other)
-{
- if (&other == this)
- return;
-
- other.disconnect();
-
- other.callback = callback;
-
- if (!isConnected())
- return;
-
- other.notifier = notifier;
- other.sourceSignal = sourceSignal;
- other.disconnected = disconnected;
- other.notifying = notifying;
- if (other.disconnected) *other.disconnected = &other;
-
- if (next) {
- other.next = next;
- next->prev = &other.next;
- }
- other.prev = prev;
- *other.prev = &other;
-
- prev = 0;
- next = 0;
- disconnected = 0;
- notifier = 0;
- notifying = 0;
- sourceSignal = -1;
-}
-
QT_END_NAMESPACE