You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2025/01/15 12:53:37 UTC
(maven-install-plugin) branch maven-install-plugin-3.x updated: Remove unused method
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch maven-install-plugin-3.x
in repository https://gitbox.apache.org/repos/asf/maven-install-plugin.git
The following commit(s) were added to refs/heads/maven-install-plugin-3.x by this push:
new ef37684 Remove unused method
ef37684 is described below
commit ef3768407ca6e411fb3e9926ff784f5d62914e78
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Wed Jan 8 19:26:26 2025 +0100
Remove unused method
---
.../org/apache/maven/plugins/install/InstallFileMojo.java | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/install/InstallFileMojo.java b/src/main/java/org/apache/maven/plugins/install/InstallFileMojo.java
index eddce57..d921742 100644
--- a/src/main/java/org/apache/maven/plugins/install/InstallFileMojo.java
+++ b/src/main/java/org/apache/maven/plugins/install/InstallFileMojo.java
@@ -43,7 +43,6 @@ import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.util.FileUtils;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import org.eclipse.aether.DefaultRepositoryCache;
@@ -442,18 +441,6 @@ public class InstallFileMojo extends AbstractMojo {
// these below should be shared (duplicated in m-install-p, m-deploy-p)
- /**
- * Specialization of {@link FileUtils#getExtension(String)} that honors various {@code tar.xxx} combinations.
- */
- private String getExtension(final File file) {
- String filename = file.getName();
- if (filename.contains(".tar.")) {
- return "tar." + FileUtils.getExtension(filename);
- } else {
- return FileUtils.getExtension(filename);
- }
- }
-
/**
* Returns {@code true} if passed in string is "valid Maven ID" (groupId or artifactId).
*/