From f334975c430c943984c1b23f40571b81400f1f39 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 24 Feb 2016 21:11:32 +0100 Subject: SONAR-7330 Remove last usage of old RuleIndex --- sonar-db/src/main/java/org/sonar/db/DbSession.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sonar-db') diff --git a/sonar-db/src/main/java/org/sonar/db/DbSession.java b/sonar-db/src/main/java/org/sonar/db/DbSession.java index a2d97d2a5f1..08e2b4ba04d 100644 --- a/sonar-db/src/main/java/org/sonar/db/DbSession.java +++ b/sonar-db/src/main/java/org/sonar/db/DbSession.java @@ -35,22 +35,28 @@ public class DbSession implements SqlSession { private List actions; - private WorkQueue queue; private SqlSession session; private int actionCount; public DbSession(WorkQueue queue, SqlSession session) { this.actionCount = 0; this.session = session; - this.queue = queue; this.actions = new ArrayList<>(); } + /** + * @deprecated since 5.5, not used anymore + */ + @Deprecated public void enqueue(ClusterAction action) { actionCount++; this.actions.add(action); } + /** + * @deprecated since 5.5, not used anymore + */ + @Deprecated public int getActionCount() { return actionCount; } @@ -58,14 +64,12 @@ public class DbSession implements SqlSession { @Override public void commit() { session.commit(); - queue.enqueue(actions); actions.clear(); } @Override public void commit(boolean force) { session.commit(force); - queue.enqueue(actions); actions.clear(); } -- cgit v1.2.3