summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-18 15:52:07 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-18 15:52:27 -0800
commite0a52eb23991eb2b3fd2a09050342b1bdea8253c (patch)
tree51dd3bd5a95cf93119145376a977f3de4c352efb
parentbc21d48795adc5306b730185a989b1c3c7ed02e1 (diff)
Remove unused std::hash_map implementation of -[SectionsController reloadData].
-rw-r--r--MobileCydia.mm35
1 files changed, 0 insertions, 35 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index cb5df28..5f2a0ad 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -118,8 +118,6 @@ extern "C" {
#include <errno.h>
#include <pcre.h>
-#include <ext/hash_map>
-
#include "UICaboodle/BrowserView.h"
#include "substrate.h"
@@ -6828,40 +6826,13 @@ freeing the view controllers on tab change */
[sections_ removeAllObjects];
[filtered_ removeAllObjects];
-#if 0
- typedef __gnu_cxx::hash_map<NSString *, Section *, NSStringMapHash, NSStringMapEqual> SectionMap;
- SectionMap sections;
- sections.resize(64);
-#else
NSMutableDictionary *sections([NSMutableDictionary dictionaryWithCapacity:32]);
-#endif
_trace();
for (Package *package in packages) {
NSString *name([package section]);
NSString *key(name == nil ? @"" : name);
-#if 0
- Section **section;
-
- _profile(SectionsView$reloadData$Section)
- section = &sections[key];
- if (*section == nil) {
- _profile(SectionsView$reloadData$Section$Allocate)
- *section = [[[Section alloc] initWithName:name localize:YES] autorelease];
- _end
- }
- _end
-
- [*section addToCount];
-
- _profile(SectionsView$reloadData$Filter)
- if (![package valid] || ![package visible])
- continue;
- _end
-
- [*section addToRow];
-#else
Section *section;
_profile(SectionsView$reloadData$Section)
@@ -6882,16 +6853,10 @@ freeing the view controllers on tab change */
_end
[section addToRow];
-#endif
}
_trace();
-#if 0
- for (SectionMap::const_iterator i(sections.begin()), e(sections.end()); i != e; ++i)
- [sections_ addObject:i->second];
-#else
[sections_ addObjectsFromArray:[sections allValues]];
-#endif
[sections_ sortUsingSelector:@selector(compareByLocalized:)];