Remove legacy raft message Proxy constructors
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / messages / RequestVote.java
index 72d1496951ef79aed8d7fba07fb963a8813793cd..f9a984feae7259506dde6c2451a753bf3bc833d5 100644 (file)
@@ -73,16 +73,9 @@ public final class RequestVote extends AbstractRaftRPC {
         public Proxy() {
         }
 
-        Proxy(final RequestVote requestVote) {
-            this.requestVote = requestVote;
-        }
-
         @Override
-        public void writeExternal(final ObjectOutput out) throws IOException {
-            out.writeLong(requestVote.getTerm());
-            out.writeObject(requestVote.candidateId);
-            out.writeLong(requestVote.lastLogIndex);
-            out.writeLong(requestVote.lastLogTerm);
+        public void writeExternal(final ObjectOutput out) {
+            throw new UnsupportedOperationException();
         }
 
         @Override