Skip to content

Commit ef37684

Browse files
pzygieloslawekjaranowski
authored andcommitted
Remove unused method
1 parent dcf39a0 commit ef37684

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/org/apache/maven/plugins/install/InstallFileMojo.java

-13
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import org.apache.maven.plugins.annotations.Component;
4444
import org.apache.maven.plugins.annotations.Mojo;
4545
import org.apache.maven.plugins.annotations.Parameter;
46-
import org.codehaus.plexus.util.FileUtils;
4746
import org.codehaus.plexus.util.StringUtils;
4847
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
4948
import org.eclipse.aether.DefaultRepositoryCache;
@@ -442,18 +441,6 @@ private File getPomLocalRepositoryFile(RepositorySystemSession session, Artifact
442441

443442
// these below should be shared (duplicated in m-install-p, m-deploy-p)
444443

445-
/**
446-
* Specialization of {@link FileUtils#getExtension(String)} that honors various {@code tar.xxx} combinations.
447-
*/
448-
private String getExtension(final File file) {
449-
String filename = file.getName();
450-
if (filename.contains(".tar.")) {
451-
return "tar." + FileUtils.getExtension(filename);
452-
} else {
453-
return FileUtils.getExtension(filename);
454-
}
455-
}
456-
457444
/**
458445
* Returns {@code true} if passed in string is "valid Maven ID" (groupId or artifactId).
459446
*/

0 commit comments

Comments
 (0)