From 79045e15c5587bb193102a6223d78aa585ff1227 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 10 Nov 2014 16:42:04 +1100 Subject: [PATCH] remove second canCompile declaration --- lib/6to5/util.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/6to5/util.js b/lib/6to5/util.js index b3d838ad0d..499ef4d234 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -52,11 +52,6 @@ exports.isAbsolute = function (loc) { return false; }; -exports.canCompile = function (filename) { - var ext = path.extname(filename); - return _.contains([".js", ".es6"], ext); -}; - exports.sourceMapToComment = function (map) { var json = JSON.stringify(map); var base64 = new Buffer(json).toString("base64");