aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/batch
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-02-24 22:58:22 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2014-02-26 12:15:58 +0100
commite4810500228a85c72bf4937874de3f37dba39d48 (patch)
tree8ae86202e20d3f8db52f8f981f0bd075a134db75 /sonar-plugin-api/src/main/java/org/sonar/api/batch
parenta7b8340e5f16f8411e44d7cffe472a28bf63c8b9 (diff)
downloadsonarqube-e4810500228a85c72bf4937874de3f37dba39d48.tar.gz
sonarqube-e4810500228a85c72bf4937874de3f37dba39d48.zip
Remove unused classes
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/batch')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/PathPattern.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/PathPattern.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/PathPattern.java
index 6b34b4b1d3b..c56f951126e 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/PathPattern.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/internal/PathPattern.java
@@ -22,11 +22,8 @@ package org.sonar.api.batch.fs.internal;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang.StringUtils;
import org.sonar.api.batch.fs.InputFile;
-import org.sonar.api.utils.PathUtils;
import org.sonar.api.utils.WildcardPattern;
-import java.io.File;
-
public abstract class PathPattern {
final WildcardPattern pattern;
@@ -37,8 +34,6 @@ public abstract class PathPattern {
public abstract boolean match(InputFile inputFile);
- public abstract boolean match(File ioFile, String relativePathFromBasedir);
-
public abstract boolean match(InputFile inputFile, boolean caseSensitiveFileExtension);
public static PathPattern create(String s) {
@@ -63,12 +58,6 @@ public abstract class PathPattern {
}
@Override
- public boolean match(File ioFile, String relativePathFromBasedir) {
- String path = PathUtils.sanitize(ioFile.getAbsolutePath());
- return pattern.match(path);
- }
-
- @Override
public boolean match(InputFile inputFile) {
return match(inputFile, true);
}
@@ -101,11 +90,6 @@ public abstract class PathPattern {
}
@Override
- public boolean match(File ioFile, String relativePathFromBasedir) {
- return relativePathFromBasedir != null && pattern.match(relativePathFromBasedir);
- }
-
- @Override
public boolean match(InputFile inputFile) {
return match(inputFile, true);
}