Remove some unused code found by Studio
This commit is contained in:
parent
9a9e5c8668
commit
9a0ba186e6
@ -353,17 +353,12 @@ public class UpdateService extends IntentService implements ProgressListener {
|
|||||||
//List<Repo> swapRepos = new ArrayList<>();
|
//List<Repo> swapRepos = new ArrayList<>();
|
||||||
List<Repo> unchangedRepos = new ArrayList<>();
|
List<Repo> unchangedRepos = new ArrayList<>();
|
||||||
List<Repo> updatedRepos = new ArrayList<>();
|
List<Repo> updatedRepos = new ArrayList<>();
|
||||||
List<Repo> disabledRepos = new ArrayList<>();
|
|
||||||
List<CharSequence> errorRepos = new ArrayList<>();
|
List<CharSequence> errorRepos = new ArrayList<>();
|
||||||
ArrayList<CharSequence> repoErrors = new ArrayList<>();
|
ArrayList<CharSequence> repoErrors = new ArrayList<>();
|
||||||
boolean changes = false;
|
boolean changes = false;
|
||||||
boolean singleRepoUpdate = !TextUtils.isEmpty(address);
|
boolean singleRepoUpdate = !TextUtils.isEmpty(address);
|
||||||
for (final Repo repo : repos) {
|
for (final Repo repo : repos) {
|
||||||
|
|
||||||
if (!repo.inuse) {
|
|
||||||
disabledRepos.add(repo);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (singleRepoUpdate && !repo.address.equals(address)) {
|
if (singleRepoUpdate && !repo.address.equals(address)) {
|
||||||
unchangedRepos.add(repo);
|
unchangedRepos.add(repo);
|
||||||
continue;
|
continue;
|
||||||
|
@ -77,7 +77,6 @@ public class AppSecurityPermissions {
|
|||||||
private final PermissionGroupInfoComparator mPermGroupComparator = new PermissionGroupInfoComparator();
|
private final PermissionGroupInfoComparator mPermGroupComparator = new PermissionGroupInfoComparator();
|
||||||
private final PermissionInfoComparator mPermComparator = new PermissionInfoComparator();
|
private final PermissionInfoComparator mPermComparator = new PermissionInfoComparator();
|
||||||
private final CharSequence mNewPermPrefix;
|
private final CharSequence mNewPermPrefix;
|
||||||
private String mPackageName;
|
|
||||||
|
|
||||||
static class MyPermissionGroupInfo extends PermissionGroupInfo {
|
static class MyPermissionGroupInfo extends PermissionGroupInfo {
|
||||||
CharSequence mLabel;
|
CharSequence mLabel;
|
||||||
@ -238,7 +237,6 @@ public class AppSecurityPermissions {
|
|||||||
if (info == null) {
|
if (info == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mPackageName = info.packageName;
|
|
||||||
|
|
||||||
final Set<MyPermissionInfo> permSet = new HashSet<>();
|
final Set<MyPermissionInfo> permSet = new HashSet<>();
|
||||||
PackageInfo installedPkgInfo = null;
|
PackageInfo installedPkgInfo = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user