From b22ab37f30572b62c3d0e6615c3d55d5275e3550 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Thu, 15 May 2025 08:30:15 +0000 Subject: [PATCH] refactor: remove unused function Remove unused code --- .../build/src/builders/unit-test/options.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/angular/build/src/builders/unit-test/options.ts b/packages/angular/build/src/builders/unit-test/options.ts index 2cd09a3b03e9..efebe56623c6 100644 --- a/packages/angular/build/src/builders/unit-test/options.ts +++ b/packages/angular/build/src/builders/unit-test/options.ts @@ -54,18 +54,3 @@ export async function normalizeOptions( watch: false, }; } - -/** - * Normalize a directory path string. - * Currently only removes a trailing slash if present. - * @param path A path string. - * @returns A normalized path string. - */ -function normalizeDirectoryPath(path: string): string { - const last = path[path.length - 1]; - if (last === '/' || last === '\\') { - return path.slice(0, -1); - } - - return path; -}