From 4e0a7fac7166512a10c781c0cce0547bb0526679 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 6 Mar 2015 10:36:17 +0100 Subject: [PATCH] Linting changes --- acorn.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/acorn.js b/acorn.js index dee7646711..d7f4d2a232 100644 --- a/acorn.js +++ b/acorn.js @@ -599,17 +599,6 @@ } }; - function combineHooks(hooks) { - if (!hooks.length) return null; - return function(arg) { - for (var i = 0; i < hooks.length; i++) { - var result = hooks[i].call(this, arg); - if (result !== false) return result; - } - return false; - }; - } - // Move to the next token pp.next = function() { @@ -1041,7 +1030,7 @@ } this.raise(this.pos, "Unexpected character '" + codePointToString(code) + "'"); - } + }; pp.finishOp = function(type, size) { var str = this.input.slice(this.pos, this.pos + size); @@ -1178,7 +1167,7 @@ code = this.readHexChar(4); } return code; - } + }; function codePointToString(code) { // UTF-16 Decoding