Remove unnecessary MessageSerializer function

This commit is contained in:
rtm516 2020-06-26 22:10:22 +01:00
parent 157133173c
commit b43dcab2e1

View file

@ -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());