You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/05/19 20:04:52 UTC

[maven-scm] 01/01: [SCM-980] Remove code duplication in ListMojo

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch SCM-980
in repository https://gitbox.apache.org/repos/asf/maven-scm.git

commit 43b86b1b3d53bb8ebb9197327c7f768c86fd20f5
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu May 19 22:04:38 2022 +0200

    [SCM-980] Remove code duplication in ListMojo
---
 .../main/java/org/apache/maven/scm/plugin/ListMojo.java   | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ListMojo.java b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ListMojo.java
index 2d8c9ac8..d933e78f 100644
--- a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ListMojo.java
+++ b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ListMojo.java
@@ -19,7 +19,6 @@ package org.apache.maven.scm.plugin;
  * under the License.
  */
 
-import java.io.File;
 import java.io.IOException;
 
 import org.apache.maven.plugin.MojoExecutionException;
@@ -27,7 +26,6 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
 import org.apache.maven.scm.ScmException;
 import org.apache.maven.scm.ScmFile;
-import org.apache.maven.scm.ScmFileSet;
 import org.apache.maven.scm.command.list.ListScmResult;
 import org.apache.maven.scm.repository.ScmRepository;
 
@@ -86,18 +84,5 @@ public class ListMojo
         }
     }
 
-    public ScmFileSet getFileSet()
-        throws IOException
-    {
-        if ( getIncludes() != null || getExcludes() != null )
-        {
-            return new ScmFileSet( getWorkingDirectory(), getIncludes(), getExcludes() );
-        }
-        else
-        {
-            return new ScmFileSet( getWorkingDirectory(), new File( "." ) );
-        }
-    }
-
 }