From 9b58d8615af5d1e436f6baf620d3b79579740948 Mon Sep 17 00:00:00 2001 From: Toine Hartman Date: Tue, 19 Nov 2024 15:20:45 +0100 Subject: [PATCH] Remove unused util function. --- .../src/main/rascal/lang/rascal/lsp/refactor/Util.rsc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Util.rsc b/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Util.rsc index a2f0b05b0..d062a5df2 100644 --- a/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Util.rsc +++ b/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Util.rsc @@ -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. }