From 7f24937f1c4a3b18d8a6619074565cc802ca731d Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 25 Feb 2021 13:51:17 +0000 Subject: [PATCH] refactor(compiler): remove unused function (#41040) The `accessExportScope()` function is not used anymore. PR Close #41040 --- packages/compiler/src/render3/r3_module_compiler.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/compiler/src/render3/r3_module_compiler.ts b/packages/compiler/src/render3/r3_module_compiler.ts index d89379a91a..981737b078 100644 --- a/packages/compiler/src/render3/r3_module_compiler.ts +++ b/packages/compiler/src/render3/r3_module_compiler.ts @@ -293,11 +293,6 @@ export function compileNgModuleFromRender2( /* methods */[])); } -function accessExportScope(module: o.Expression): o.Expression { - const selectorScope = new o.ReadPropExpr(module, 'ɵmod'); - return new o.ReadPropExpr(selectorScope, 'exported'); -} - function tupleTypeOf(exp: R3Reference[]): o.Type { const types = exp.map(ref => o.typeofExpr(ref.type)); return exp.length > 0 ? o.expressionType(o.literalArr(types)) : o.NONE_TYPE;