This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch unused in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit bb1937823e32c8a7043ae52e67ad6710b44ec6f5 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Sat Nov 9 18:18:14 2024 -0500 Remove unused code --- .../maven/plugins/dependency/ListRepositoriesMojo.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java b/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java index fa067ded..d86c3865 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java +++ b/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java @@ -44,8 +44,8 @@ import org.eclipse.aether.repository.RemoteRepository; import org.eclipse.aether.util.graph.visitor.TreeDependencyVisitor; /** - * Goal that collect all project dependencies and then lists the repositories used by the build and by the transitive - * dependencies + * Goal that collects all project dependencies and then lists the repositories used by the build and by the transitive + * dependencies. * * @author <a href="mailto:bri...@apache.org">Brian Fox</a> * @since 2.2 @@ -143,14 +143,4 @@ public class ListRepositoriesMojo extends AbstractDependencyMojo { remoteProjectRepositories.forEach( repo -> message.append(" * ").append(repo).append(System.lineSeparator())); } - - private Map<RemoteRepository, RemoteRepository> getMirroredRepo(Set<RemoteRepository> repositories) { - Map<RemoteRepository, RemoteRepository> mirrorMap = new HashMap<>(); - - repositories.stream() - .filter(repo -> !repo.getMirroredRepositories().isEmpty()) - .forEach(repo -> repo.getMirroredRepositories().forEach(mrepo -> mirrorMap.put(mrepo, repo))); - - return mirrorMap; - } }