]> git.saurik.com Git - cycript.git/commitdiff
Remove obsolete attempts to support the Simulator.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Jun 2013 07:44:13 +0000 (00:44 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Jun 2013 07:44:13 +0000 (00:44 -0700)
Trampoline.t.cpp

index aff0296c1778bd1eebabd6bdd25e8a9a084b2480..e5d4a7dbb57b4ce39e32d6c4717b3faabac6a28e 100644 (file)
@@ -150,11 +150,6 @@ static _finline void cyset(Baton *baton, Type_ &function, const char *name, cons
     function = reinterpret_cast<Type_>(Symbol(infos, library, name));
 }
 
-// XXX: where you find this needs to be relative to CoreFoundation (or something)
-// XXX: this needs to check if the framework is under PrivateFrameworks instead
-#define Framework(framework) \
-    "/System/Library/Frameworks/" #framework ".framework/" #framework
-
 void *Routine(void *arg) {
     Baton *baton(reinterpret_cast<Baton *>(arg));
 
@@ -173,15 +168,6 @@ void *Routine(void *arg) {
     void *(*dlopen)(const char *, int);
     dlset(&dynamic, dlopen, "dlopen");
 
-    if (dynamic.dlsym(RTLD_DEFAULT, "JSEvaluateScript") == NULL)
-        dlopen(Framework(JavaScriptCore), RTLD_GLOBAL | RTLD_LAZY);
-
-    void *(*objc_getClass)(const char *);
-    dlset(&dynamic, objc_getClass, "objc_getClass");
-
-    if (objc_getClass("WebUndefined") == NULL)
-        dlopen(Framework(WebKit), RTLD_GLOBAL | RTLD_LAZY);
-
     void *handle(dlopen(baton->library, RTLD_LAZY | RTLD_LOCAL));
     if (handle == NULL) {
         dynamic.dlerror();