Skip to content

Commit abd52c0

Browse files
committed
docs: remove trivial documentation
1 parent 17becfb commit abd52c0

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

jabgui/src/main/java/org/jabref/gui/util/MarkdownTextFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public MarkdownTextFlow(Pane parent) {
4747
* @param markdownText The Markdown text to render. If null or empty, the TextFlow will be cleared.
4848
*/
4949
public void setMarkdown(String markdownText) {
50-
this.clear();
50+
this.clearSelection();
5151
needsLineBreak = false;
5252

5353
if (markdownText == null || markdownText.trim().isEmpty()) {

jabgui/src/main/java/org/jabref/gui/util/SelectableTextFlow.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ public SelectableTextFlow(Pane parent) {
6060
});
6161
}
6262

63-
/**
64-
* Copy selected text.
65-
*/
6663
public void copySelectedText() {
6764
if (startHit.isEmpty() || endHit.isEmpty()) {
6865
return;
@@ -79,9 +76,6 @@ public void copySelectedText() {
7976
}
8077
}
8178

82-
/**
83-
* Select all text in the TextFlow.
84-
*/
8579
public void selectAll() {
8680
if (getChildren().isEmpty()) {
8781
return;
@@ -91,10 +85,7 @@ public void selectAll() {
9185
updateSelectionHighlight();
9286
}
9387

94-
/**
95-
* Clears selection.
96-
*/
97-
public void clear() {
88+
public void clearSelection() {
9889
getChildren().clear();
9990
startHit = Optional.empty();
10091
endHit = Optional.empty();

0 commit comments

Comments
 (0)