From 13315e708cc8673f39d1b7a6cfe5e0e723f4ab26 Mon Sep 17 00:00:00 2001 From: 1e99 <1e99@1e99.eu> Date: Sun, 17 Nov 2024 13:49:32 +0100 Subject: [PATCH] cleanup --- common/src/eu/e99/svc/io/MessageRegistry.java | 5 ++--- server/src/eu/e99/svc/server/Main.java | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/src/eu/e99/svc/io/MessageRegistry.java b/common/src/eu/e99/svc/io/MessageRegistry.java index b7bd42d..67b5f0e 100644 --- a/common/src/eu/e99/svc/io/MessageRegistry.java +++ b/common/src/eu/e99/svc/io/MessageRegistry.java @@ -1,7 +1,5 @@ package eu.e99.svc.io; -import eu.e99.svc.packet.*; - import java.io.IOException; import java.util.HashMap; import java.util.Map; @@ -19,7 +17,8 @@ public class MessageRegistry { public BinaryMessage readMessage(Reader reader) throws IOException { int id = reader.readInt(); - Supplier supplier = this.messagesById.get(id);; + Supplier supplier = this.messagesById.get(id); + ; if (supplier == null) { throw new RuntimeException("Failed to find message with id " + id); } diff --git a/server/src/eu/e99/svc/server/Main.java b/server/src/eu/e99/svc/server/Main.java index 700e86b..8fac3f9 100644 --- a/server/src/eu/e99/svc/server/Main.java +++ b/server/src/eu/e99/svc/server/Main.java @@ -5,7 +5,6 @@ import javax.net.ssl.SSLContext; import javax.net.ssl.SSLServerSocketFactory; import java.io.FileInputStream; import java.io.IOException; -import java.net.Inet4Address; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.security.KeyStore;