Remove unused ShardCommitCoordinator#CohortEntry constructor 13/29713/4
authorMoiz Raja <moraja@cisco.com>
Sun, 15 Nov 2015 02:01:42 +0000 (18:01 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 17 Nov 2015 18:28:38 +0000 (18:28 +0000)
Change-Id: I43b478bd6b5467cc46a65c97a5888ce0ec5ded5c
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java

index 043333c..0d63115 100644 (file)
@@ -29,7 +29,6 @@ import org.opendaylight.controller.cluster.datastore.messages.ForwardedReadyTran
 import org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction;
 import org.opendaylight.controller.cluster.datastore.messages.ReadyTransactionReply;
 import org.opendaylight.controller.cluster.datastore.modification.Modification;
-import org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
 import org.slf4j.Logger;
@@ -128,8 +127,7 @@ class ShardCommitCoordinator {
         log.debug("{}: Readying transaction {}, client version {}", name,
                 ready.getTransactionID(), ready.getTxnClientVersion());
 
-        CohortEntry cohortEntry = new CohortEntry(ready.getTransactionID(), ready.getCohort(),
-                (MutableCompositeModification) ready.getModification());
+        CohortEntry cohortEntry = new CohortEntry(ready.getTransactionID(), ready.getCohort());
         cohortCache.put(ready.getTransactionID(), cohortEntry);
 
         if(!queueCohortEntry(cohortEntry, sender, shard)) {
@@ -553,13 +551,6 @@ class ShardCommitCoordinator {
             this.transactionID = transactionID;
         }
 
-        CohortEntry(String transactionID, ShardDataTreeCohort cohort,
-                MutableCompositeModification compositeModification) {
-            this.transactionID = transactionID;
-            this.cohort = cohort;
-            this.transaction = null;
-        }
-
         CohortEntry(String transactionID, ShardDataTreeCohort cohort) {
             this.transactionID = transactionID;
             this.cohort = cohort;