aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/qtquick1/threading/workerscript/workerscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/qtquick1/threading/workerscript/workerscript.js')
-rw-r--r--examples/declarative/qtquick1/threading/workerscript/workerscript.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/declarative/qtquick1/threading/workerscript/workerscript.js b/examples/declarative/qtquick1/threading/workerscript/workerscript.js
deleted file mode 100644
index f76471f920..0000000000
--- a/examples/declarative/qtquick1/threading/workerscript/workerscript.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var lastx = 0;
-var lasty = 0;
-
-WorkerScript.onMessage = function(message) {
- var ydiff = message.y - lasty;
- var xdiff = message.x - lastx;
-
- var total = Math.sqrt(ydiff * ydiff + xdiff * xdiff);
-
- lastx = message.x;
- lasty = message.y;
-
- WorkerScript.sendMessage( {xmove: xdiff, ymove: ydiff, move: total} );
-}
-