Skip to content

Commit

Permalink
Remove unused util function.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Nov 19, 2024
1 parent f193365 commit 9b58d86
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Util.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@ bool isShorterTuple(tuple[loc, &T] t1, tuple[loc, &T] t2) = isShorter(t1[0], t2[
}
bool byOffset(loc l1, loc l2) = l1.offset < l2.offset;

@synopsis{
Gives the longest location in a non-empty set of locations.
On a tie, gives one of the longest locations.
}
loc maxByLength(set[loc] locs:{_, *_}) = // at least one element
(|unknown:///|(0, 0, <0, 0>, <0, 0>) | it.length > l.length ? it : l | l <- locs);

@synopsis{
Predicate to reverse a sort order.
}
Expand Down

0 comments on commit 9b58d86

Please sign in to comment.