mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Remove unused method.
This commit is contained in:
parent
7aacaf8c38
commit
5c7dfd1d69
@ -347,19 +347,4 @@ public final class Localization {
|
|||||||
private static double round(final double value, final int places) {
|
private static double round(final double value, final int places) {
|
||||||
return new BigDecimal(value).setScale(places, RoundingMode.HALF_UP).doubleValue();
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user