Remove unused methods

This commit is contained in:
Dr. Tobias Quathamer
2017-02-06 18:58:03 +01:00
parent dd7ef2d744
commit ffce59ea7e
2 changed files with 0 additions and 23 deletions
@@ -513,25 +513,6 @@ public class AndroidUtilities {
return photoSize;
}
public static String formatTTLString(int ttl) {
if (ttl < 60) {
return LocaleController.formatPluralString("Seconds", ttl);
} else if (ttl < 60 * 60) {
return LocaleController.formatPluralString("Minutes", ttl / 60);
} else if (ttl < 60 * 60 * 24) {
return LocaleController.formatPluralString("Hours", ttl / 60 / 60);
} else if (ttl < 60 * 60 * 24 * 7) {
return LocaleController.formatPluralString("Days", ttl / 60 / 60 / 24);
} else {
int days = ttl / 60 / 60 / 24;
if (ttl % 7 == 0) {
return LocaleController.formatPluralString("Weeks", days / 7);
} else {
return String.format("%s %s", LocaleController.formatPluralString("Weeks", days / 7), LocaleController.formatPluralString("Days", days % 7));
}
}
}
public static void clearCursorDrawable(EditText editText) {
if (editText == null) {
return;
@@ -551,10 +551,6 @@ public class LocaleController {
recreateFormatters();
}
private void loadCurrentLocale() {
localeValues.clear();
}
public static String getCurrentLanguageName() {
return getString("LanguageName", R.string.LanguageName);
}