]> git.saurik.com Git - cydia.git/commitdiff
Remove WebDefaultUIKitDelegate override for CYWebView.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 20 Oct 2011 08:32:17 +0000 (01:32 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 20 Oct 2011 08:32:43 +0000 (01:32 -0700)
MobileCydia.mm

index 83f51e3f6ddc9b8050e90c1d67f76ad1145db427..58a380ef8507d2b510c79907ffeab55d785c0b03 100644 (file)
@@ -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) {