From: Jay Freeman (saurik) Date: Sat, 26 Feb 2011 16:09:13 +0000 (-0800) Subject: Remove indirection from addBridgedHost:. X-Git-Tag: v1.1.0%b1~149 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/bc061528be3e3c61ba19b525d7ce1814c7e7c622 Remove indirection from addBridgedHost:. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 8499155a..1ac856ed 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