summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-26 08:09:13 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:23 -0800
commitbc061528be3e3c61ba19b525d7ce1814c7e7c622 (patch)
tree9a5a193b5624aaf07d3cf0061a178c46fbdb6aaf /MobileCydia.mm
parentcfc7b44283b4c860c92134481fd1de25f09b031b (diff)
Remove indirection from addBridgedHost:.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm9
1 files changed, 2 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 8499155..1ac856e 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1194,7 +1194,6 @@ bool isSectionVisible(NSString *section) {
- (CYViewController *) pageForPackage:(NSString *)name;
- (void) showActionSheet:(UIActionSheet *)sheet fromItem:(UIBarButtonItem *)item;
- (void) reloadDataWithInvocation:(NSInvocation *)invocation;
-- (void) addBridgedHost:(NSString *)host;
@end
/* }}} */
@@ -4319,7 +4318,7 @@ static NSMutableSet *Diversions_;
}
- (void) addBridgedHost:(NSString *)host {
- [delegate_ performSelectorOnMainThread:@selector(addBridgedHost:) withObject:host waitUntilDone:NO];
+ [BridgedHosts_ performSelectorOnMainThread:@selector(addObject:) withObject:host waitUntilDone:NO];
}
- (void) popViewController:(NSNumber *)value {
@@ -9761,16 +9760,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[tabbar_ setUpdateDelegate:self];
}
-- (void) addBridgedHost:(NSString *)host {
- [BridgedHosts_ addObject:host];
-}
-
- (void) applicationDidFinishLaunching:(id)unused {
_trace();
if ([self respondsToSelector:@selector(setApplicationSupportsShakeToEdit:)])
[self setApplicationSupportsShakeToEdit:NO];
- [self addBridgedHost:[[NSURL URLWithString:CydiaURL(@"")] host]];
+ [BridgedHosts_ addObject:[[NSURL URLWithString:CydiaURL(@"")] host]];
[NSURLCache setSharedURLCache:[[[SDURLCache alloc]
initWithMemoryCapacity:524288