Remove some dead code found by Studio

This commit is contained in:
Daniel Martí 2016-05-07 23:10:13 +01:00
parent 98130de4ae
commit 5f6762f543
2 changed files with 0 additions and 25 deletions

View File

@ -124,20 +124,4 @@ public class FileCompat {
}
@TargetApi(9)
public static boolean setExecutable(SanitizedFile file, boolean executable, boolean ownerOnly) {
if (Build.VERSION.SDK_INT >= 9) {
return file.setExecutable(executable, ownerOnly);
}
String mode;
if (executable) {
mode = ownerOnly ? "0700" : "0711";
} else {
mode = ownerOnly ? "0600" : "0600";
}
return setMode(file, mode);
}
}

View File

@ -111,15 +111,6 @@ public class AppSecurityPermissions {
return context.getDrawable(R.drawable.ic_perm_device_info);
}
public int flags() {
if (Build.VERSION.SDK_INT < 17) return 0;
return flags;
}
public int priority() {
if (Build.VERSION.SDK_INT < 17) return 0;
return priority;
}
}
// PermissionInfo implements Parcelable but its Parcel constructor is private and thus cannot be extended.