Remove unused method.

pull/8738/head
Isira Seneviratne 2022-07-29 09:18:21 +05:30
rodzic 7aacaf8c38
commit 5c7dfd1d69
1 zmienionych plików z 0 dodań i 15 usunięć

Wyświetl plik

@ -347,19 +347,4 @@ public final class Localization {
private static double round(final double value, final int places) {
return new BigDecimal(value).setScale(places, RoundingMode.HALF_UP).doubleValue();
}
/**
* Workaround to match normalized captions like english to English or deutsch to Deutsch.
* @param list the list to search into
* @param toFind the string to look for
* @return whether the string was found or not
*/
public static boolean containsCaseInsensitive(final List<String> list, final String toFind) {
for (final String i : list) {
if (i.equalsIgnoreCase(toFind)) {
return true;
}
}
return false;
}
}