diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 05:34:16 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 05:34:16 -0700 |
commit | b9c96fc728d61dfa50cfa3a50f0441a1c363fbc0 (patch) | |
tree | 1ec37926c14a030addadb8fe316e57eb42d2305b | |
parent | 3d1e6f42e56ceffc0afd18135bc435e8fa66ae22 (diff) |
Drop global Packages_ variable (no longer needed).
-rw-r--r-- | MobileCydia.mm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 8d54176..91f29fd 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -812,7 +812,6 @@ static NSDictionary *SectionMap_; static NSMutableDictionary *Metadata_; static _H<NSDate> Backgrounded_; static _transient NSMutableDictionary *Settings_; -static _transient NSMutableDictionary *Packages_; static _transient NSMutableDictionary *Values_; static _transient NSMutableDictionary *Sections_; _H<NSMutableDictionary> Sources_; @@ -10407,8 +10406,6 @@ int main(int argc, char *argv[]) { else { Settings_ = [Metadata_ objectForKey:@"Settings"]; - Packages_ = [Metadata_ objectForKey:@"Packages"]; - Values_ = [Metadata_ objectForKey:@"Values"]; Sections_ = [Metadata_ objectForKey:@"Sections"]; Sources_ = [Metadata_ objectForKey:@"Sources"]; @@ -10470,14 +10467,13 @@ int main(int argc, char *argv[]) { MetaFile_.Open("/var/mobile/Library/Cydia/metadata.cb0"); _trace(); - if (Packages_ != nil) { + if (NSDictionary *packages = [Metadata_ objectForKey:@"Packages"]) { bool fail(false); - CFDictionaryApplyFunction((CFDictionaryRef) Packages_, &PackageImport, &fail); + CFDictionaryApplyFunction((CFDictionaryRef) packages, &PackageImport, &fail); _trace(); if (!fail) { [Metadata_ removeObjectForKey:@"Packages"]; - Packages_ = nil; Changed_ = true; } } |