Index: webkit/data/test_shell/sort/sort-insertion.js |
diff --git a/webkit/data/test_shell/sort/sort-insertion.js b/webkit/data/test_shell/sort/sort-insertion.js |
deleted file mode 100644 |
index 188819ccb542eb694bf28775b1d4d541ecbc6592..0000000000000000000000000000000000000000 |
--- a/webkit/data/test_shell/sort/sort-insertion.js |
+++ /dev/null |
@@ -1,26 +0,0 @@ |
-// insertion sort |
- |
-function sort_insertion(sort, x, y) { |
- if (arguments.length == 1 || x == undefined) { |
- x = 1; y = 1; |
- } |
- var len = sort.bars.length; |
- if (x < len && y > 0) { |
- if (sort.compare(y, y - 1) < 0) { |
- sort.swap(y, y - 1); |
- y--; |
- if (y == 0) { |
- x++; |
- y = x; |
- } |
- } else { |
- x++; |
- y = x; |
- } |
- if (x < len) { |
- sort.add_work(function () { sort_insertion(sort, x, y); }); |
- return; |
- } |
- } |
-} |
- |