Skip to content

Commit d85d937

Browse files
committed
Remove unused text area writer
1 parent 44605ed commit d85d937

2 files changed

Lines changed: 1 addition & 54 deletions

File tree

bCNU/src/main/java/cnuphys/bCNU/component/TextAreaWriter.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

bCNU/src/main/java/cnuphys/bCNU/dialog/TextDisplayDialog.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import javax.swing.JScrollPane;
1010
import javax.swing.JTextArea;
1111

12-
import cnuphys.bCNU.component.TextAreaWriter;
1312
import cnuphys.bCNU.util.Fonts;
1413

1514
public class TextDisplayDialog extends SimpleDialog {
@@ -21,9 +20,6 @@ public class TextDisplayDialog extends SimpleDialog {
2120

2221
private static final Font _font = Fonts.defaultMono;
2322

24-
// the writer
25-
private TextAreaWriter _writer;
26-
2723
// the text area
2824
private JTextArea _textArea;
2925

@@ -39,8 +35,6 @@ public TextDisplayDialog(String title) {
3935
_textArea.setLineWrap(false);
4036
_textArea.setFont(_font);
4137

42-
_writer = new TextAreaWriter(_textArea);
43-
4438
setSize(WIDTH, HEIGHT);
4539
DialogUtilities.centerDialog(this);
4640
}
@@ -54,15 +48,6 @@ public void setText(String text) {
5448
_textArea.setText(text);
5549
}
5650

57-
/**
58-
* Get the Writer object that writes to the text area
59-
*
60-
* @return the writer
61-
*/
62-
public TextAreaWriter getWriter() {
63-
return _writer;
64-
}
65-
6651
/**
6752
* Override to create the component that goes in the center.
6853
*
@@ -97,4 +82,4 @@ public Insets getInsets() {
9782
public JTextArea getTextArea() {
9883
return _textArea;
9984
}
100-
}
85+
}

0 commit comments

Comments
 (0)