BUG-5280: remove support for talking to pre-Boron clients
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / CloseTransaction.java
index 8cf5002..1a3567c 100644 (file)
@@ -8,15 +8,9 @@
 
 package org.opendaylight.controller.cluster.datastore.messages;
 
-import org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages;
-
 public class CloseTransaction extends VersionedExternalizableMessage {
     private static final long serialVersionUID = 1L;
 
-    @Deprecated
-    private static final Object SERIALIZED_INSTANCE =
-            ShardTransactionMessages.CloseTransaction.newBuilder().build();
-
     public CloseTransaction() {
     }
 
@@ -24,13 +18,7 @@ public class CloseTransaction extends VersionedExternalizableMessage {
         super(version);
     }
 
-    @Deprecated
-    @Override
-    protected Object newLegacySerializedInstance() {
-        return SERIALIZED_INSTANCE;
-    }
-
     public static boolean isSerializedType(Object message) {
-        return message instanceof CloseTransaction || message instanceof ShardTransactionMessages.CloseTransaction;
+        return message instanceof CloseTransaction;
     }
 }