This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 263f65b3 Remove unused code (#453) 263f65b3 is described below commit 263f65b32d3676f0fcdfad51cae1674a150a200c Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Sun Nov 10 06:01:24 2024 -0500 Remove unused code (#453) --- .../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; - } }