Removed unused initialization methods in serializer

This commit is contained in:
nathan 2020-06-25 01:23:25 +02:00
parent ca72e2db72
commit 92492a45c1
2 changed files with 0 additions and 28 deletions

View File

@ -17,8 +17,6 @@ package dorkbox.util.serialization;
import java.io.IOException;
import org.slf4j.Logger;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
import com.esotericsoftware.kryo.io.Input;
@ -104,17 +102,4 @@ interface SerializationManager {
* Returns a class read from the input
*/
Object readFullClassAndObject(final Input input) throws IOException;
/**
* Called when initialization is complete. This is to prevent (and recognize) out-of-order class/serializer registration.
*
* The loggers are for trace debug output for the wire data
*/
void finishInit(final Logger wireReadLogger, final Logger wireWriteLogger);
/**
* @return true if our initialization is complete. Some registrations (in the property store, for example) always register for client
* and server, even if in the same JVM. This only attempts to register once.
*/
boolean initialized();
}

View File

@ -17,8 +17,6 @@ package dorkbox.util.storage;
import java.io.IOException;
import org.slf4j.Logger;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
import com.esotericsoftware.kryo.io.Input;
@ -93,15 +91,4 @@ class DefaultStorageSerializationManager implements SerializationManager {
Object readFullClassAndObject(final Input input) throws IOException {
return kryo.readClassAndObject(input);
}
@Override
public
void finishInit(final Logger logger, final Logger writeLogger) {
}
@Override
public
boolean initialized() {
return false;
}
}