From: Jay Freeman (saurik) Date: Sun, 1 Nov 2015 22:05:01 +0000 (-0800) Subject: The RuntimeProperty callback is now long obsolete. X-Git-Tag: v0.9.504~30 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/dace80755cd90ff908df4a546f5a0e17a8dad186 The RuntimeProperty callback is now long obsolete. --- diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 2528ad0..6440a59 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -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() }