From 4489e6d0144f09bb41863517630fda114dca6055 Mon Sep 17 00:00:00 2001 From: khalilou88 Date: Thu, 19 Oct 2023 15:57:28 +0200 Subject: [PATCH] build: remove unused function --- packages/nx-maven/src/utils/index.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/nx-maven/src/utils/index.ts b/packages/nx-maven/src/utils/index.ts index e955cceca..a49f018b6 100644 --- a/packages/nx-maven/src/utils/index.ts +++ b/packages/nx-maven/src/utils/index.ts @@ -40,16 +40,3 @@ export function getMavenRootDirectory() { } return 'nx-maven'; } - -export function isPomPackaging(context: ExecutorContext): boolean { - const projectRoot = getProjectRoot(context); - const pomXmlPath = path.join(context.root, projectRoot, 'pom.xml'); - const pomXmlContent = readXml(pomXmlPath); - const packagingXml = pomXmlContent.childNamed('packaging'); - - if (packagingXml === undefined) { - return false; - } - - return packagingXml.val === 'pom'; -}