diff options
author | Mark Doffman <mark.doffman@codethink.co.uk> | 2014-03-27 20:48:57 +0000 |
---|---|---|
committer | Mark Doffman <mark.doffman@codethink.co.uk> | 2014-03-27 20:48:57 +0000 |
commit | eb8b1ea389df1c7ea6d3156afe17ef5e7a2042c5 (patch) | |
tree | a1820ffeed76ca8784882ea9be9020cd8e1ce933 | |
parent | 0ab9fd30ee944b546ebe9049a693ce7c587c2c2f (diff) | |
download | gobject-introspection-eb8b1ea389df1c7ea6d3156afe17ef5e7a2042c5.tar.gz |
Revert "[gobject-introspection] Add test method for GDestroy with no user data"
This reverts commit 130a49c083aa74fccc218a810d353866dbf69e72.
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 20 | ||||
-rw-r--r-- | tests/scanner/regress.c | 14 | ||||
-rw-r--r-- | tests/scanner/regress.h | 2 |
3 files changed, 0 insertions, 36 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 8d123f7a..a3e77db1 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -2307,26 +2307,6 @@ is invoked.</doc> </parameter> </parameters> </function> - <function name="test_callback_destroy_notify_no_user_data" - c:identifier="regress_test_callback_destroy_notify_no_user_data"> - <doc xml:whitespace="preserve">Adds a scope notified callback with no user data. This can invoke an error -condition in bindings which needs to be tested.</doc> - <return-value transfer-ownership="none"> - <type name="gint" c:type="int"/> - </return-value> - <parameters> - <parameter name="callback" - transfer-ownership="none" - scope="notified" - destroy="1"> - <type name="TestCallbackUserData" - c:type="RegressTestCallbackUserData"/> - </parameter> - <parameter name="notify" transfer-ownership="none" scope="async"> - <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/> - </parameter> - </parameters> - </function> <function name="test_callback_thaw_async" c:identifier="regress_test_callback_thaw_async"> <return-value transfer-ownership="none"> diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index c6ca6b74..2fba9fd5 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -3324,20 +3324,6 @@ regress_test_callback_destroy_notify (RegressTestCallbackUserData callback, } /** - * regress_test_callback_destroy_notify_no_user_data: - * @callback: (scope notified): - * - * Adds a scope notified callback with no user data. This can invoke an error - * condition in bindings which needs to be tested. - **/ -int -regress_test_callback_destroy_notify_no_user_data (RegressTestCallbackUserData callback, - GDestroyNotify notify) -{ - return regress_test_callback_destroy_notify(callback, NULL, notify); -} - -/** * regress_test_callback_thaw_notifications: * * Invokes all callbacks installed by #test_callback_destroy_notify(), diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 635ea7bd..f2dae494 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -677,8 +677,6 @@ int regress_test_callback_user_data (RegressTestCallbackUserData callback, int regress_test_callback_destroy_notify (RegressTestCallbackUserData callback, gpointer user_data, GDestroyNotify notify); -int regress_test_callback_destroy_notify_no_user_data (RegressTestCallbackUserData callback, - GDestroyNotify notify); int regress_test_callback_thaw_notifications (void); void regress_test_callback_async (RegressTestCallbackUserData callback, gpointer user_data); |