Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Jan 8, 2025
1 parent dcf39a0 commit 9a1f41c
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
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;
Expand Down Expand Up @@ -442,18 +441,6 @@ private File getPomLocalRepositoryFile(RepositorySystemSession session, Artifact

// 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).
*/
Expand Down

0 comments on commit 9a1f41c

Please sign in to comment.