From ac628975a30466d144022176522f9461adda8baa Mon Sep 17 00:00:00 2001 From: Leonardo Balter Date: Tue, 21 Jun 2016 13:03:22 -0400 Subject: [PATCH] Remove unused variables Fixes gh-597 --- test/built-ins/Array/prototype/every/15.4.4.16-2-15.js | 1 - test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-23.js | 1 - test/built-ins/Array/prototype/filter/15.4.4.20-2-15.js | 1 - test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-23.js | 1 - test/built-ins/Array/prototype/forEach/15.4.4.18-2-15.js | 1 - test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-23.js | 1 - test/built-ins/Array/prototype/indexOf/15.4.4.14-1-17.js | 1 - test/built-ins/Array/prototype/indexOf/15.4.4.14-2-15.js | 1 - test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-23.js | 1 - test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-17.js | 1 - test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-15.js | 1 - test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-23.js | 1 - test/built-ins/Array/prototype/map/15.4.4.19-2-15.js | 1 - test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-23.js | 1 - test/built-ins/Array/prototype/reduce/15.4.4.21-2-15.js | 1 - test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-23.js | 1 - test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-23.js | 1 - test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-15.js | 1 - .../Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-23.js | 1 - test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-23.js | 1 - test/built-ins/Array/prototype/some/15.4.4.17-2-15.js | 1 - test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-23.js | 1 - 22 files changed, 22 deletions(-) diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-15.js index af5eb35c4f..a93cc3ec0a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-15.js @@ -14,7 +14,6 @@ description: Array.prototype.every - 'length' is property of the global object return val > 11; } - var oldLen = this.length; this[0] = 12; this[1] = 11; this[2] = 9; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-23.js index a0dc517b84..5dc89662d3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-23.js @@ -16,7 +16,6 @@ description: > } } - var oldLen = this.length; this[0] = 11; this.length = 1; diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-15.js index f94697a841..134c3a1b4e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-15.js @@ -10,7 +10,6 @@ description: Array.prototype.filter - 'length' is property of the global object return obj.length === 2; } - var oldLen = this.length; this[0] = 12; this[1] = 11; this[2] = 9; diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-23.js index 4bce203576..360150f3d9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-23.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-23.js @@ -12,7 +12,6 @@ description: > return idx === 0 && val === 11; } - var oldLen = this.length; this[0] = 11; this.length = 1; var newArr = Array.prototype.filter.call(this, callbackfn); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-15.js index c5217d655b..a6c9d3031d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-15.js @@ -11,7 +11,6 @@ description: Array.prototype.forEach - 'length' is property of the global object result = (obj.length === 2); } - var oldLen = this.length; this[0] = 12; this[1] = 11; this[2] = 9; diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-23.js index 3358cfde52..dc4c479d63 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-23.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-23.js @@ -16,7 +16,6 @@ description: > } } - var oldLen = this.length; this[0] = 11; this.length = 1; diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-17.js index 7333b2369b..669fef35ce 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-17.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-17.js @@ -6,7 +6,6 @@ es5id: 15.4.4.14-1-17 description: Array.prototype.indexOf applied to the global object ---*/ - var oldLen = this.length; this[1] = true; this.length = 2; diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-15.js index 61b0c69386..82e0516273 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-15.js @@ -8,7 +8,6 @@ description: Array.prototype.indexOf - 'length' is property of the global object var targetObj = {}; - var oldLen = this.length; this.length = 2; this[1] = targetObj; diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-23.js index a9d706667e..df488c2476 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-23.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-23.js @@ -8,7 +8,6 @@ description: Array.prototype.indexOf - This object is the global object var targetObj = {}; - var oldLen = this.length; this[0] = targetObj; this[100] = "100"; this[200] = "200"; diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-17.js index aeeba6c2ce..30e5594bee 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-17.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-17.js @@ -8,7 +8,6 @@ description: Array.prototype.lastIndexOf applied to the global object var targetObj = ["global"]; - var oldLen = this.length; this[1] = targetObj; this.length = 3; diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-15.js index 2523f266f6..584ad1a43d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-15.js @@ -10,7 +10,6 @@ description: > var targetObj = {}; - var oldLen = this.length; this.length = 2; this[1] = targetObj; diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-23.js index e94974c9b9..333a5ef45a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-23.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-23.js @@ -8,7 +8,6 @@ description: Array.prototype.lastIndexOf - This object is the global object var targetObj = {}; - var oldLen = this.length; this[0] = targetObj; this[100] = "100"; this[200] = "200"; diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-15.js index b1ea68d41a..e3a8db9aba 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-15.js @@ -12,7 +12,6 @@ description: > return val > 10; } - var oldLen = this.length; this[0] = 12; this[1] = 11; this[2] = 9; diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-23.js index 3127fa521c..f50523c573 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-23.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-23.js @@ -17,7 +17,6 @@ description: > return false; } - var oldLen = this.length; this[0] = kValue; this.length = 2; diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-15.js index 215377cc44..0db78b27d1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-15.js @@ -10,7 +10,6 @@ description: Array.prototype.reduce - 'length' is property of the global object return (obj.length === 2); } - var oldLen = this.length; this[0] = 12; this[1] = 11; this[2] = 9; diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-23.js index eaecf13eae..f3e097b508 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-23.js @@ -15,7 +15,6 @@ description: > } } - var oldLen = this.length; this[0] = 0; this[1] = 1; this[2] = 2; diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-23.js index 92f3f4a9d8..31102135e9 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-23.js @@ -16,7 +16,6 @@ description: > } } - var oldLen = this.length; this[0] = 0; this[1] = 1; this.length = 2; diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-15.js index 1bf0a1311f..37e997477e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-15.js @@ -16,7 +16,6 @@ var global = this; return obj.length === global.length; } - var oldLen = this.length; this[0] = 12; this[1] = 11; this[2] = 9; diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-23.js index 9d376d448a..9d6f73a1c1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-23.js @@ -15,7 +15,6 @@ description: > } } - var oldLen = this.length; this[0] = 0; this[1] = 1; this[2] = 2; diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-23.js index 6726078429..585c5f10c8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-23.js @@ -15,7 +15,6 @@ description: > } } - var oldLen = this.length; this[0] = 0; this[1] = 1; this[2] = 2; diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-15.js index f4fbdf646c..ed30df4191 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-15.js @@ -14,7 +14,6 @@ description: Array.prototype.some - 'length' is property of the global object return val > 11; } - var oldLen = this.length; this[0] = 9; this[1] = 11; this[2] = 12; diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-23.js index 1332401f9d..e626dfe745 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-23.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-23.js @@ -15,7 +15,6 @@ description: > return false; } - var oldLen = this.length; this[0] = 11; this.length = 1;