From f92c24b1e091afae446ad847f02cc4595de807b3 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 23 Feb 2016 15:38:07 -0800 Subject: [PATCH] Removed unused liftNode function --- src/compiler/visitor.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index 5850c54e93..92b00b1270 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -855,26 +855,6 @@ namespace ts { return createNodeArray(concatenate(statements, declarations), /*location*/ statements); } - /** - * Tries to lift a NodeArrayNode to a Node. This is primarily used to - * lift multiple statements into a single Block. - * - * @param node The visited Node. - * @param options Options used to control lift behavior. - */ - function liftNode(node: Node, lifter: (nodes: NodeArray) => Node): Node { - if (node === undefined) { - return undefined; - } - else if (isNodeArrayNode(node)) { - const lift = lifter || extractSingleNode; - return lift(node.nodes); - } - else { - return node; - } - } - /** * Lifts a NodeArray containing only Statement nodes to a block. *