From e662d9976ca9f919f8c99a1f2f60d8c40563b20c Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Fri, 28 Jul 2023 16:26:35 +0200 Subject: [PATCH] Remove unused --- .../aether/resolution/DependencyResult.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResult.java b/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResult.java index 35f664379..be9f21e67 100644 --- a/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResult.java +++ b/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResult.java @@ -18,12 +18,10 @@ */ package org.eclipse.aether.resolution; -import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.eclipse.aether.RepositorySystem; -import org.eclipse.aether.artifact.Artifact; import org.eclipse.aether.graph.DependencyCycle; import org.eclipse.aether.graph.DependencyNode; @@ -193,27 +191,6 @@ public DependencyResult setArtifactResults(List results) { return this; } - /** - * Returns the list of resolved artifacts. - * - * @since TBD - */ - public List getArtifacts(boolean includeUnresolved) { - List artifacts = new ArrayList<>(artifactResults.size()); - - for (ArtifactResult artifactResult : artifactResults) { - Artifact artifact = artifactResult.getArtifact(); - if (artifact == null && includeUnresolved) { - artifact = artifactResult.getRequest().getArtifact(); - } - if (artifact != null) { - artifacts.add(artifact); - } - } - - return artifacts; - } - @Override public String toString() { return String.valueOf(artifactResults);