Remove not needed ReplicatedDataSerializer
This commit is contained in:
commit
9b5f84286b
1 changed files with 0 additions and 3 deletions
|
|
@ -7,7 +7,6 @@ package docs.ddata.protobuf
|
||||||
//#serializer
|
//#serializer
|
||||||
import akka.actor.ExtendedActorSystem
|
import akka.actor.ExtendedActorSystem
|
||||||
import akka.cluster.ddata.GSet
|
import akka.cluster.ddata.GSet
|
||||||
import akka.cluster.ddata.protobuf.ReplicatedDataSerializer
|
|
||||||
import akka.cluster.ddata.protobuf.SerializationSupport
|
import akka.cluster.ddata.protobuf.SerializationSupport
|
||||||
import akka.serialization.Serializer
|
import akka.serialization.Serializer
|
||||||
import docs.ddata.TwoPhaseSet
|
import docs.ddata.TwoPhaseSet
|
||||||
|
|
@ -19,8 +18,6 @@ class TwoPhaseSetSerializer2(val system: ExtendedActorSystem) extends Serializer
|
||||||
|
|
||||||
override def identifier = 99999
|
override def identifier = 99999
|
||||||
|
|
||||||
val replicatedDataSerializer = new ReplicatedDataSerializer(system)
|
|
||||||
|
|
||||||
override def toBinary(obj: AnyRef): Array[Byte] = obj match {
|
override def toBinary(obj: AnyRef): Array[Byte] = obj match {
|
||||||
case m: TwoPhaseSet => twoPhaseSetToProto(m).toByteArray
|
case m: TwoPhaseSet => twoPhaseSetToProto(m).toByteArray
|
||||||
case _ => throw new IllegalArgumentException(s"Can't serialize object of type ${obj.getClass}")
|
case _ => throw new IllegalArgumentException(s"Can't serialize object of type ${obj.getClass}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue