dead method
This commit is contained in:
parent
483a57b83f
commit
b4e88bbeae
|
@ -85,8 +85,6 @@ public interface IoStream extends WriteStream, Closeable, StreamStatistics {
|
|||
|
||||
void close();
|
||||
|
||||
String getLoggingPrefix();
|
||||
|
||||
IncomingDataBuffer getDataBuffer();
|
||||
|
||||
default short readShort() throws EOFException {
|
||||
|
|
|
@ -14,7 +14,6 @@ import java.util.Arrays;
|
|||
*
|
||||
*/
|
||||
public class Elm327IoStream extends AbstractIoStream {
|
||||
private final String loggingPrefix;
|
||||
private final Elm327Connector con;
|
||||
private final DisconnectListener disconnectListener;
|
||||
@NotNull
|
||||
|
@ -40,7 +39,6 @@ public class Elm327IoStream extends AbstractIoStream {
|
|||
|
||||
private Elm327IoStream(Elm327Connector con, String loggingPrefix, DisconnectListener disconnectListener) {
|
||||
this.con = con;
|
||||
this.loggingPrefix = loggingPrefix;
|
||||
this.disconnectListener = disconnectListener;
|
||||
this.dataBuffer = IncomingDataBuffer.createDataBuffer(loggingPrefix, this);
|
||||
|
||||
|
@ -59,11 +57,6 @@ public class Elm327IoStream extends AbstractIoStream {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLoggingPrefix() {
|
||||
return loggingPrefix;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public IncomingDataBuffer getDataBuffer() {
|
||||
|
|
|
@ -38,11 +38,6 @@ public class SerialIoStream extends AbstractIoStream {
|
|||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLoggingPrefix() {
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
log.info(port + ": Closing port...");
|
||||
|
|
|
@ -60,11 +60,6 @@ public class TcpIoStream extends AbstractIoStream {
|
|||
FileUtil.close(socket);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLoggingPrefix() {
|
||||
return loggingPrefix;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IncomingDataBuffer getDataBuffer() {
|
||||
return dataBuffer;
|
||||
|
|
Loading…
Reference in New Issue