Remove some dead code found by Studio
This commit is contained in:
parent
98130de4ae
commit
5f6762f543
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user