From b43dcab2e15e10ec80c4233567af7f1a47064dd5 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Fri, 26 Jun 2020 22:10:22 +0100 Subject: [PATCH] Remove unnecessary MessageSerializer function --- .../mc/protocol/data/message/MessageSerializer.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/message/MessageSerializer.java b/src/main/java/com/github/steveice10/mc/protocol/data/message/MessageSerializer.java index 75e9b723..eb8eadeb 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/message/MessageSerializer.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/message/MessageSerializer.java @@ -60,10 +60,6 @@ public class MessageSerializer { return toJson(message).toString(); } - public static String toJsonAsString(Message message) { - return toJson(message).getAsString(); - } - public static JsonElement toJson(Message message) { if(message instanceof TextMessage && message.getStyle().equals(MessageStyle.DEFAULT) && message.getExtra().isEmpty()) { return new JsonPrimitive(((TextMessage) message).getText());