Skip to content

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Jul 28, 2023
1 parent e3f9de4 commit e662d99
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -193,27 +191,6 @@ public DependencyResult setArtifactResults(List<ArtifactResult> results) {
return this;
}

/**
* Returns the list of resolved artifacts.
*
* @since TBD
*/
public List<Artifact> getArtifacts(boolean includeUnresolved) {
List<Artifact> 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);
Expand Down

0 comments on commit e662d99

Please sign in to comment.