Remove leftover code in SearchUtil.

Closes #12090
This commit is contained in:
clauz9
2022-03-24 11:13:46 +02:00
committed by Greyson Parrelli
parent 1e316ea19f
commit 2ebaa04c2f

View File

@@ -66,11 +66,6 @@ public class SearchUtil {
default:
throw new InvalidParameterException("match mode must be STRICT or MATCH_ALL: " + matchMode);
}
if (matchMode == STRICT) {
ranges = getStrictHighlightRanges(locale, text.toString(), highlight);
} else {
ranges = getHighlightRanges(locale, text.toString(), highlight);
}
for (Pair<Integer, Integer> range : ranges) {
spanned.setSpan(styleFactory.create(), range.first(), range.second(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);