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);