remove unused variables

This commit is contained in:
Sebastian McKenzie
2014-11-24 10:21:01 +11:00
parent 51e521f0e0
commit 0e822a7e54

View File

@@ -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);
};