Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jun 13, 2022
1 parent 3cf976b commit 158d354
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tinodesdk/src/main/java/co/tinode/tinodesdk/model/Drafty.java
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ protected Node toTree() {
}

// Sort spans first by start index (asc) then by length (desc).
Collections.sort(spans, (a, b) -> {
spans.sort((a, b) -> {
int diff = a.start - b.start;
if (diff != 0) {
return diff;
Expand Down Expand Up @@ -1824,16 +1824,6 @@ public Drafty toDrafty() {
return doc.toDrafty();
}

protected boolean isInContext(@NotNull String tp) {
if (parent == null) {
return false;
}
if (tp.equals(parent.tp)) {
return true;
}
return parent.isInContext(tp);
}

private void appendToDrafty(@NotNull MutableDrafty doc) {
int start = doc.length();

Expand Down

0 comments on commit 158d354

Please sign in to comment.