IsAndroid is now a part of OS

This commit is contained in:
nathan 2015-11-02 01:03:14 +01:00
parent 5ecbf451cb
commit 71bc6110e0

View File

@ -28,8 +28,6 @@ import java.util.Map.Entry;
@SuppressWarnings("unused")
public final
class Sys {
public static final boolean isAndroid = getIsAndroid();
public static final int KILOBYTE = 1024;
public static final int MEGABYTE = 1024 * KILOBYTE;
public static final int GIGABYTE = 1024 * MEGABYTE;
@ -46,17 +44,6 @@ class Sys {
return charArray;
}
private static
boolean getIsAndroid() {
try {
Class.forName("android.os.Process");
return true;
} catch (Exception ignored) {
return false;
}
}
public static
void eraseString(String string) {
// You can change the value of the inner char[] using reflection.