kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Remove unused method.
rodzic
7aacaf8c38
commit
5c7dfd1d69
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue