From 7f24975a60665da7813dcb458346f184b3c10d00 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 13 Nov 2019 08:31:28 +0000 Subject: [PATCH] refactor(ngcc): remove unused function (#33777) PR Close #33777 --- packages/compiler-cli/ngcc/src/host/commonjs_host.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/compiler-cli/ngcc/src/host/commonjs_host.ts b/packages/compiler-cli/ngcc/src/host/commonjs_host.ts index a96e74801d..6e8cf61888 100644 --- a/packages/compiler-cli/ngcc/src/host/commonjs_host.ts +++ b/packages/compiler-cli/ngcc/src/host/commonjs_host.ts @@ -235,10 +235,6 @@ function findNamespaceOfIdentifier(id: ts.Identifier): ts.Identifier|null { null; } -export function stripParentheses(node: ts.Node): ts.Node { - return ts.isParenthesizedExpression(node) ? node.expression : node; -} - type ReexportStatement = ts.ExpressionStatement & {expression: {arguments: [RequireCall]}}; function isReexportStatement(statement: ts.Statement): statement is ReexportStatement { return ts.isExpressionStatement(statement) && ts.isCallExpression(statement.expression) &&