summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-12 02:38:46 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-12 02:38:46 -0700
commit826318ca9072e3d961df9b3b1a57ae5a487cee7d (patch)
tree9ac67b7d55ff498a7c81b4440bc6084722e48cf9
parenta7b261d93482e4bd18bb904e96a4106226ca57e4 (diff)
Package is based on a version: this is impossible.
-rw-r--r--MobileCydia.mm18
1 files changed, 4 insertions, 14 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 798e582..7644911 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -2157,7 +2157,6 @@ struct ParsedPackage {
- (NSString *) installed;
- (BOOL) uninstalled;
-- (BOOL) valid;
- (BOOL) upgradableAndEssential:(BOOL)essential;
- (BOOL) essential;
- (BOOL) broken;
@@ -2545,12 +2544,7 @@ struct PackageNameOrdering :
iterator_ = iterator;
_profile(Package$initWithVersion$Version)
- if (!version_.end())
- file_ = version_.FileList();
- else {
- pkgCache &cache([database_ cache]);
- file_ = pkgCache::VerFileIterator(cache, cache.VerFileP);
- }
+ file_ = version_.FileList();
_end
_profile(Package$initWithVersion$Cache)
@@ -2898,17 +2892,13 @@ struct PackageNameOrdering :
return installed_.empty();
}
-- (BOOL) valid {
- return !version_.end();
-}
-
- (BOOL) upgradableAndEssential:(BOOL)essential {
_profile(Package$upgradableAndEssential)
pkgCache::VerIterator current(iterator_.CurrentVer());
if (current.end())
return essential && essential_;
else
- return !version_.end() && version_ != current;
+ return version_ != current;
_end
}
@@ -6836,7 +6826,7 @@ typedef Function<void, NSMutableArray *> PackageSorter;
_profile(PackageTable$reloadData$Filter)
for (Package *package in packages)
- if ([package valid] && filter(package))
+ if (filter(package))
[filtered addObject:package];
_end
@@ -7480,7 +7470,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
[section addToCount];
_profile(SectionsView$reloadData$Filter)
- if (![package valid] || ![package visible])
+ if (![package visible])
continue;
_end