From 38396dadd54621d731ac2a2a7fa444d92b190d1b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 14 Nov 2014 09:15:29 +1100 Subject: [PATCH] remove unused nodes.inherits in util.template --- lib/6to5/util.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/6to5/util.js b/lib/6to5/util.js index 0b840d7617..ec6f5b8df3 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -123,11 +123,7 @@ exports.template = function (name, nodes, keepExpression) { template = _.cloneDeep(template); - var inherits = false; if (nodes) { - inherits = nodes.inherits; - delete nodes.inherits; - if (!_.isEmpty(nodes)) { traverse(template, function (node) { if (t.isIdentifier(node) && _.has(nodes, node.name)) { @@ -150,10 +146,6 @@ exports.template = function (name, nodes, keepExpression) { if (t.isParenthesizedExpression(node)) node = node.expression; } - if (inherits) { - node = t.inherits(node, inherits); - } - return node; };