diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-07-20 23:53:26 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-07-20 23:53:26 +0200 |
commit | 2e38406b37a89770bd4817a2e31b1d7fb4e0bbb2 (patch) | |
tree | f4430af7f8f7dc90c2d55600fe78425474e0c1cf /sonar-batch/src | |
parent | 670a6f9def17dca3ab131a1930fc2dcec5dc438f (diff) | |
download | sonarqube-2e38406b37a89770bd4817a2e31b1d7fb4e0bbb2.tar.gz sonarqube-2e38406b37a89770bd4817a2e31b1d7fb4e0bbb2.zip |
Remove unused db classes Snapshot and ResourceModel
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/index/BatchComponent.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/BatchComponent.java b/sonar-batch/src/main/java/org/sonar/batch/index/BatchComponent.java index 5dc04e22c5f..4cbadbe8668 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/BatchComponent.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/BatchComponent.java @@ -25,7 +25,6 @@ import javax.annotation.CheckForNull; import javax.annotation.Nullable; import org.apache.commons.lang.StringUtils; import org.sonar.api.batch.fs.InputPath; -import org.sonar.api.database.model.Snapshot; import org.sonar.api.resources.Qualifiers; import org.sonar.api.resources.Resource; import org.sonar.api.resources.ResourceUtils; @@ -34,7 +33,6 @@ public class BatchComponent { private final int batchId; private final Resource r; - private Snapshot s; private final BatchComponent parent; private final Collection<BatchComponent> children = new ArrayList<>(); private InputPath inputPath; @@ -60,23 +58,6 @@ public class BatchComponent { return r; } - public BatchComponent setSnapshot(Snapshot snapshot) { - this.s = snapshot; - return this; - } - - /** - * @return null in database less mode - */ - @CheckForNull - public Integer snapshotId() { - return s != null ? s.getId() : null; - } - - public Snapshot snapshot() { - return s; - } - @CheckForNull public BatchComponent parent() { return parent; |