aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/batch
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2016-06-14 17:32:54 +0200
committerJulien HENRY <henryju@yahoo.fr>2016-07-05 14:00:16 +0200
commit79b89035c9e0e4772cf3371f1ca120f301e7ecdf (patch)
tree9f30442c8543629aa40780de83358a655b3e2a2a /sonar-scanner-engine/src/main/java/org/sonar/batch
parenta8608d8d77ec640968c308459bba9aef61d12ab2 (diff)
downloadsonarqube-79b89035c9e0e4772cf3371f1ca120f301e7ecdf.tar.gz
sonarqube-79b89035c9e0e4772cf3371f1ca120f301e7ecdf.zip
SONAR-7727 Remove SquidUtils and deprecated methods on old SensorContext
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/batch')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/batch/deprecated/DeprecatedSensorContext.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/deprecated/DeprecatedSensorContext.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/deprecated/DeprecatedSensorContext.java
index ccb928a598d..ca087ffdf93 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/batch/deprecated/DeprecatedSensorContext.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/deprecated/DeprecatedSensorContext.java
@@ -42,7 +42,6 @@ import org.sonar.api.resources.Directory;
import org.sonar.api.resources.File;
import org.sonar.api.resources.Project;
import org.sonar.api.resources.Resource;
-import org.sonar.api.utils.SonarException;
import org.sonar.batch.index.DefaultIndex;
import org.sonar.batch.sensor.DefaultSensorContext;
import org.sonar.batch.sensor.coverage.CoverageExclusions;
@@ -69,37 +68,6 @@ public class DeprecatedSensorContext extends DefaultSensorContext implements Sen
}
@Override
- public boolean index(Resource resource) {
- // SONAR-5006
- logWarning();
- return true;
- }
-
- @Override
- public boolean index(Resource resource, Resource parentReference) {
- // SONAR-5006
- logWarning();
- return true;
- }
-
- private static void logWarning() {
- if (LOG.isDebugEnabled()) {
- LOG.debug("Plugins are no more responsible for indexing physical resources like directories and files. This is now handled by the platform.", new SonarException(
- "Plugin should not index physical resources"));
- }
- }
-
- @Override
- public boolean isExcluded(Resource reference) {
- return index.isExcluded(reference);
- }
-
- @Override
- public boolean isIndexed(Resource reference, boolean acceptExcluded) {
- return index.isIndexed(reference, acceptExcluded);
- }
-
- @Override
public Resource getParent(Resource reference) {
return index.getParent(reference);
}
@@ -180,11 +148,6 @@ public class DeprecatedSensorContext extends DefaultSensorContext implements Sen
return null;
}
- @Override
- public void saveSource(Resource reference, String source) {
- // useless since 4.2.
- }
-
private Resource resourceOrProject(Resource resource) {
if (resource == null) {
return project;