From 4aeaf0e6b9e45fd73acf64c3637b8dc0294fcee3 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 2 Sep 2015 18:18:56 +0200 Subject: [PATCH] Remove dead code --- lib/parser/javascript.js | 4 ---- lib/queue.js | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/parser/javascript.js b/lib/parser/javascript.js index 5ad0436215..2060cbab8f 100644 --- a/lib/parser/javascript.js +++ b/lib/parser/javascript.js @@ -290,10 +290,6 @@ ReplyParser.prototype._bytesRemaining = function () { return (this._buffer.length - this._offset) < 0 ? 0 : (this._buffer.length - this._offset); }; -ReplyParser.prototype.parser_error = function (message) { - this.emit("error", message); -}; - ReplyParser.prototype.send_error = function (reply) { this.emit("reply error", reply); }; diff --git a/lib/queue.js b/lib/queue.js index d2eb17e56c..a6ac3b2584 100644 --- a/lib/queue.js +++ b/lib/queue.js @@ -55,7 +55,4 @@ Object.defineProperty(Queue.prototype, "length", { } }); - -if (typeof module !== "undefined" && module.exports) { - module.exports = Queue; -} +module.exports = Queue;