diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-10-20 01:32:17 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-10-20 01:32:43 -0700 |
commit | f9257f618734672534a3955c16aa83acfa5e1786 (patch) | |
tree | aece675294638500d6cb2722699442b2f3b8a803 | |
parent | 8ba636c7efd0a50d05c87d164ca8018a40f738d4 (diff) |
Remove WebDefaultUIKitDelegate override for CYWebView.
-rw-r--r-- | MobileCydia.mm | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 83f51e3..58a380e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10374,14 +10374,6 @@ id Dealloc_(id self, SEL selector) { return object; }*/ -Class $WebDefaultUIKitDelegate; - -MSHook(void, UIWebDocumentView$_setUIKitDelegate$, UIWebDocumentView *self, SEL _cmd, id delegate) { - if (delegate == nil && $WebDefaultUIKitDelegate != nil) - delegate = [$WebDefaultUIKitDelegate sharedUIKitDelegate]; - return _UIWebDocumentView$_setUIKitDelegate$(self, _cmd, delegate); -} - static NSSet *MobilizedFiles_; static NSURL *MobilizeURL(NSURL *url) { @@ -10551,13 +10543,6 @@ int main(int argc, char *argv[]) { method_setImplementation(CFXPreferencesPropertyListSource$createPlistFromDisk, reinterpret_cast<IMP>(&$CFXPreferencesPropertyListSource$createPlistFromDisk)); } - $WebDefaultUIKitDelegate = objc_getClass("WebDefaultUIKitDelegate"); - Method UIWebDocumentView$_setUIKitDelegate$(class_getInstanceMethod([WebView class], @selector(_setUIKitDelegate:))); - if (UIWebDocumentView$_setUIKitDelegate$ != NULL) { - _UIWebDocumentView$_setUIKitDelegate$ = reinterpret_cast<void (*)(UIWebDocumentView *, SEL, id)>(method_getImplementation(UIWebDocumentView$_setUIKitDelegate$)); - method_setImplementation(UIWebDocumentView$_setUIKitDelegate$, reinterpret_cast<IMP>(&$UIWebDocumentView$_setUIKitDelegate$)); - } - $NSURLConnection = objc_getClass("NSURLConnection"); Method NSURLConnection$init$(class_getInstanceMethod($NSURLConnection, @selector(_initWithRequest:delegate:usesCache:maxContentLength:startImmediately:connectionProperties:))); if (NSURLConnection$init$ != NULL) { |