[gjs] gi: Remove _gi.add_interface()



commit e2c89e8b2cae2507a8e2614b2f9166e8935c6cb9
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Jan 12 23:54:28 2017 -0800

    gi: Remove _gi.add_interface()
    
    This used to be a function in the imports._gi module, but it was
    rewritten at some point to be called only from C++. The JS function
    definition was mistakenly left in. If you tried to call this function
    from JS, it would almost certainly crash, so we may as well remove it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777205

 gi/object.cpp |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index bac99d1..8e71aea 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -3136,8 +3136,6 @@ static JSFunctionSpec module_funcs[] = {
     JS_FS("override_property", gjs_override_property, 2, GJS_MODULE_PROP_FLAGS),
     JS_FS("register_interface", gjs_register_interface, 3, GJS_MODULE_PROP_FLAGS),
     JS_FS("register_type", gjs_register_type, 4, GJS_MODULE_PROP_FLAGS),
-    // FIXME this function will be totally broken if you try to use it from JS
-    JS_FS("add_interface", (JSNative)gjs_add_interface, 2, GJS_MODULE_PROP_FLAGS),
     JS_FS("hook_up_vfunc", gjs_hook_up_vfunc, 3, GJS_MODULE_PROP_FLAGS),
     JS_FS("signal_new", gjs_signal_new, 6, GJS_MODULE_PROP_FLAGS),
     JS_FS_END,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]