Skip to content

Commit 7cc7d47

Browse files
author
Federico Fissore
committed
Code cleanup
1 parent 6258e02 commit 7cc7d47

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

app/src/processing/app/syntax/SketchTextArea.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.apache.commons.compress.utils.IOUtils;
3434
import org.fife.ui.rsyntaxtextarea.*;
3535
import org.fife.ui.rsyntaxtextarea.Token;
36-
import org.fife.ui.rsyntaxtextarea.focusabletip.FocusableTip;
3736
import org.fife.ui.rtextarea.RTextArea;
3837
import org.fife.ui.rtextarea.RTextAreaUI;
3938
import org.fife.ui.rtextarea.RUndoManager;
@@ -67,18 +66,12 @@
6766
* Arduino Sketch code editor based on RSyntaxTextArea (http://fifesoft.com/rsyntaxtextarea)
6867
*
6968
* @author Ricardo JL Rufino ([email protected])
70-
* @date 20/04/2015
7169
* @since 1.6.4
7270
*/
7371
public class SketchTextArea extends RSyntaxTextArea {
7472

7573
private final static Logger LOG = Logger.getLogger(SketchTextArea.class.getName());
7674

77-
/**
78-
* The last docTooltip displayed.
79-
*/
80-
private FocusableTip docTooltip;
81-
8275
private EditorListener editorListener;
8376

8477
private final PdeKeywords pdeKeywords;
@@ -174,15 +167,6 @@ public boolean isSelectionActive() {
174167
return this.getSelectedText() != null;
175168
}
176169

177-
public void setSelectedText(String text) {
178-
179-
int old = getTextMode();
180-
setTextMode(OVERWRITE_MODE);
181-
replaceSelection(text);
182-
setTextMode(old);
183-
184-
}
185-
186170
public void processKeyEvent(KeyEvent evt) {
187171

188172
// this had to be added because the menu key events weren't making it up to the frame.
@@ -237,16 +221,6 @@ public void getTextLine(int line, Segment segment) {
237221
}
238222
}
239223

240-
public String getTextLine(int line) {
241-
try {
242-
int offset = getLineStartOffset(line);
243-
int end = getLineEndOffset(line);
244-
return getDocument().getText(offset, end - offset);
245-
} catch (BadLocationException e) {
246-
return null;
247-
}
248-
}
249-
250224

251225
public void setEditorListener(EditorListener editorListener) {
252226
this.editorListener = editorListener;

0 commit comments

Comments
 (0)