From 9a8e4002c17702bb23e98637c41c5deb3246a211 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Tue, 24 Sep 2024 17:05:48 +0200 Subject: [PATCH] code cleanup. issue #2395 --- .../jlawyer/client/assistant/AiCalloutComponent.java | 12 ------------ .../jlawyer/client/assistant/AiChatMessagePanel.java | 2 -- 2 files changed, 14 deletions(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiCalloutComponent.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiCalloutComponent.java index c890941bb..85307c665 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiCalloutComponent.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiCalloutComponent.java @@ -905,18 +905,6 @@ public Dimension getPreferredSize() { return super.getPreferredSize(); } - private void drawTextContent(Graphics2D g2d) { - // Custom rendering for chat content - String content = (this.message == null || this.message.getContent() == null) ? "" : this.message.getContent(); - String[] lines = content.split("\n"); - - int yOffset = 10 + g2d.getFontMetrics().getHeight(); - for (String line : lines) { - g2d.drawString(line, 40, yOffset); - yOffset += g2d.getFontMetrics().getHeight(); - } - } - /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiChatMessagePanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiChatMessagePanel.java index 3b64ae76b..63918d16b 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiChatMessagePanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/assistant/AiChatMessagePanel.java @@ -680,7 +680,6 @@ public class AiChatMessagePanel extends javax.swing.JPanel { private static final Logger log = Logger.getLogger(AiChatMessagePanel.class.getName()); - private JDialog owner=null; private Message msg = null; protected int maxDocumentChars = Integer.MAX_VALUE; @@ -697,7 +696,6 @@ public AiChatMessagePanel() { public AiChatMessagePanel(Message aiMessage, JDialog owner) { initComponents(); - this.owner=owner; this.msg = aiMessage; this.lblUser.setForeground(Color.WHITE);