From 9601b5d18a2fe9b191ea0be6264c4feecc9f89e4 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 3 Feb 2020 18:54:31 +0200 Subject: [PATCH] refactor(ngcc): remove unused function (#35122) Since #35057, the `markNonAngularPackageAsProcessed()` function is no longer used and can be removed. PR Close #35122 --- packages/compiler-cli/ngcc/src/main.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/compiler-cli/ngcc/src/main.ts b/packages/compiler-cli/ngcc/src/main.ts index d64f972f6d..8f79b4afde 100644 --- a/packages/compiler-cli/ngcc/src/main.ts +++ b/packages/compiler-cli/ngcc/src/main.ts @@ -380,22 +380,6 @@ function getEntryPointFinder( } } -/** - * If we get here, then the requested entry-point did not contain anything compiled by - * the old Angular compiler. Therefore there is nothing for ngcc to do. - * So mark all formats in this entry-point as processed so that clients of ngcc can avoid - * triggering ngcc for this entry-point in the future. - */ -function markNonAngularPackageAsProcessed( - fs: FileSystem, pkgJsonUpdater: PackageJsonUpdater, path: AbsoluteFsPath) { - const packageJsonPath = resolve(path, 'package.json'); - const packageJson = JSON.parse(fs.readFile(packageJsonPath)); - - // Note: We are marking all supported properties as processed, even if they don't exist in the - // `package.json` file. While this is redundant, it is also harmless. - markAsProcessed(pkgJsonUpdater, packageJson, packageJsonPath, SUPPORTED_FORMAT_PROPERTIES); -} - function logInvalidEntryPoints(logger: Logger, invalidEntryPoints: InvalidEntryPoint[]): void { invalidEntryPoints.forEach(invalidEntryPoint => { logger.debug(