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) &&