From 67edb68aae597632274133384c0e6dd87d5dea11 Mon Sep 17 00:00:00 2001 From: Juul Hobert Date: Fri, 15 Mar 2024 15:44:59 +0100 Subject: [PATCH] Removed unused class --- .../maven/plugins/help/EffectivePomMojo.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java b/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java index 1a27e1c..2f100db 100644 --- a/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java +++ b/src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java @@ -248,36 +248,6 @@ private void writeEffectivePom( MavenProject project, XMLWriter writer ) writer.writeMarkup( effectivePom ); } - private static class DependencyTreeWalker - { - private void visit( DependencyNode node, Stack currentPath, Map> paths ) - { - Artifact artifact = node.getArtifact(); - String artifactKey = - ArtifactUtils.key( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() ); - - // Add artifact with current traversal path to result - paths.put( artifactKey, new ArrayList<>( currentPath ) ); - - // Recursively add dependencies of artifact - currentPath.push( artifactKey ); - - for ( DependencyNode child : node.getChildren() ) - { - visit( child, currentPath, paths ); - } - - currentPath.pop(); - } - - public Map> walk( DependencyNode graph ) - { - HashMap> paths = new HashMap<>(); - visit( graph, new Stack(), paths ); - return paths; - } - } - /** * Apply some logic to clean the model before writing it. *