From dace80755cd90ff908df4a546f5a0e17a8dad186 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 1 Nov 2015 14:05:01 -0800 Subject: [PATCH] The RuntimeProperty callback is now long obsolete. --- ObjectiveC/Library.mm | 10 ---------- 1 file changed, 10 deletions(-) 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() } -- 2.47.2