From 0e822a7e545cde32b51765a6f0db1dd86e7dacf2 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 24 Nov 2014 10:21:01 +1100 Subject: [PATCH] remove unused variables --- lib/6to5/transformation/modules/common-interop.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/6to5/transformation/modules/common-interop.js b/lib/6to5/transformation/modules/common-interop.js index ad378606c0..d8ffdf134e 100644 --- a/lib/6to5/transformation/modules/common-interop.js +++ b/lib/6to5/transformation/modules/common-interop.js @@ -3,9 +3,8 @@ module.exports = CommonJSInteropFormatter; var CommonJSFormatter = require("./common"); var util = require("../../util"); var t = require("../../types"); -var _ = require("lodash"); -function CommonJSInteropFormatter(file) { +function CommonJSInteropFormatter() { this.has = false; CommonJSFormatter.apply(this, arguments); } @@ -29,7 +28,7 @@ CommonJSInteropFormatter.prototype.importSpecifier = function (specifier, node, } }; -CommonJSInteropFormatter.prototype.export = function (node, nodes, parent) { +CommonJSInteropFormatter.prototype.export = function (node, nodes) { if (node.default && !this.has) { var declar = node.declaration; @@ -48,7 +47,7 @@ CommonJSInteropFormatter.prototype.export = function (node, nodes, parent) { CommonJSFormatter.prototype.export.apply(this, arguments); }; -CommonJSInteropFormatter.prototype.exportSpecifier = function (specifier, node, nodes) { +CommonJSInteropFormatter.prototype.exportSpecifier = function () { this.has = true; CommonJSFormatter.prototype.exportSpecifier.apply(this, arguments); };