Skip to content

Commit

Permalink
code cleanup. issue #2395
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Sep 24, 2024
1 parent d2eded3 commit 9a8e400
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -697,7 +696,6 @@ public AiChatMessagePanel() {
public AiChatMessagePanel(Message aiMessage, JDialog owner) {
initComponents();

this.owner=owner;
this.msg = aiMessage;

this.lblUser.setForeground(Color.WHITE);
Expand Down

0 comments on commit 9a8e400

Please sign in to comment.