diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-18 16:41:22 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-18 16:42:28 -0800 |
commit | 07befb0c8289bc3f7b46301c2a925771e85c3c96 (patch) | |
tree | 4346ce26931a1a95934da72cafb793abac95cc80 /MobileCydia.mm | |
parent | 72fb3616e29af3da3a15f0913cd909a260292805 (diff) |
Flatten Sections.plist: no Rename and no recursion.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index a3b9cdd..b6802c0 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -2209,15 +2209,7 @@ struct PackageNameOrdering : _profile(Package$section) std::replace(section_.data(), section_.data() + section_.size(), '_', ' '); NSString *name(section_); - - lookup: - if (NSDictionary *value = [SectionMap_ objectForKey:name]) - if (NSString *rename = [value objectForKey:@"Rename"]) { - name = rename; - goto lookup; - } - - section$_ = name; + section$_ = [SectionMap_ objectForKey:name] ?: name; _end } return section$_; } |