]> git.saurik.com Git - cycript.git/commitdiff
The RuntimeProperty callback is now long obsolete.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 1 Nov 2015 22:05:01 +0000 (14:05 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 1 Nov 2015 22:05:01 +0000 (14:05 -0800)
ObjectiveC/Library.mm

index 2528ad0c6ca4dd555e3550dbec65643ea33020de..6440a59ed34d15bbd132d4b8a43721820ca9cb2d 100644 (file)
@@ -1498,16 +1498,6 @@ void CYObjectiveC_ExecuteEnd(JSContextRef context, void *handle) { CYSadTry {
     return [(NSAutoreleasePool *) handle release];
 } CYSadCatch() }
 
-JSValueRef CYObjectiveC_RuntimeProperty(JSContextRef context, CYUTF8String name) { CYPoolTry {
-    if (name == "nil")
-        return Instance::Make(context, nil);
-    if (Class _class = objc_getClass(name.data))
-        return CYMakeInstance(context, _class, true);
-    if (Protocol *protocol = objc_getProtocol(name.data))
-        return CYMakeInstance(context, protocol, true);
-    return NULL;
-} CYPoolCatch(NULL) return /*XXX*/ NULL; }
-
 static void CYObjectiveC_CallFunction(JSContextRef context, ffi_cif *cif, void (*function)(), uint8_t *value, void **values) { CYSadTry {
     ffi_call(cif, function, value, values);
 } CYSadCatch() }