summaryrefslogtreecommitdiff
path: root/tests/auto/qml/Client.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/Client.qml')
-rw-r--r--tests/auto/qml/Client.qml25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/auto/qml/Client.qml b/tests/auto/qml/Client.qml
index 0b623a0..161a85e 100644
--- a/tests/auto/qml/Client.qml
+++ b/tests/auto/qml/Client.qml
@@ -86,30 +86,6 @@ Item {
}
readonly property var clientTransport: clientTransport
- Timer {
- id: timer
- running: false
- repeat: false
-
- property var callback
-
- onTriggered: {
- callback();
- }
- }
-
- function setTimeout(callback, delay)
- {
- if (timer.running) {
- console.error("nested calls to setTimeout are not supported!", JSON.stringify(callback), JSON.stringify(timer.callback));
- return;
- }
- timer.callback = callback;
- // note: an interval of 0 is directly triggered, so add a little padding
- timer.interval = delay + 1;
- timer.running = true;
- }
-
function createChannel(callback, raw)
{
return new JSClient.QWebChannel(clientTransport, callback, raw);
@@ -118,7 +94,6 @@ Item {
function cleanup()
{
clientMessages = [];
- timer.running = false;
}
function awaitRawMessage()