From 2e38406b37a89770bd4817a2e31b1d7fb4e0bbb2 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 20 Jul 2015 23:53:26 +0200 Subject: Remove unused db classes Snapshot and ResourceModel --- .../java/org/sonar/batch/index/BatchComponent.java | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'sonar-batch/src') 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 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; -- cgit v1.2.3