From 4d76f039c7306c15955a03b2dcdca635fc576e60 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sun, 19 Oct 2025 11:37:10 +0300 Subject: [PATCH] ChatRoom: remove unused addToTranscript(String to, String from, String body, Date date) --- .../org/jivesoftware/spark/ui/ChatRoom.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/src/main/java/org/jivesoftware/spark/ui/ChatRoom.java b/core/src/main/java/org/jivesoftware/spark/ui/ChatRoom.java index cd39e24da..77077b281 100644 --- a/core/src/main/java/org/jivesoftware/spark/ui/ChatRoom.java +++ b/core/src/main/java/org/jivesoftware/spark/ui/ChatRoom.java @@ -565,25 +565,6 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener scrollToBottom(); } - /** - * Adds a new message to the transcript history. - * - * @param to who the message is to. - * @param from who the message was from. - * @param body the body of the message. - * @param date when the message was received. - */ - public void addToTranscript(String to, String from, String body, Date date) { - final Message newMessage = new Message(); - newMessage.setTo(JidCreate.fromOrThrowUnchecked(to)); - newMessage.setFrom(JidCreate.fromOrThrowUnchecked(from)); - newMessage.setBody(body); - final Map properties = new HashMap<>(); - properties.put("date", new Date()); - newMessage.addExtension(new JivePropertiesExtension(properties)); - transcript.add(newMessage); - } - /** * Scrolls the chat window to the bottom. */