[gobject-introspection] [everything] Remove test_callback_infinite



commit 52b0e7bc7011176e82e04183de463adfde604378
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri May 7 15:22:08 2010 -0400

    [everything] Remove test_callback_infinite
    
    The 'infinite' value for callback scope was removed, so the test
    case for it needs to be removed as well.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=618041

 gir/Everything-1.0-expected.gir |   18 ------------------
 gir/everything.c                |   18 ------------------
 gir/everything.h                |    3 ---
 3 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/gir/Everything-1.0-expected.gir b/gir/Everything-1.0-expected.gir
index 4a9f3ba..168c8b2 100644
--- a/gir/Everything-1.0-expected.gir
+++ b/gir/Everything-1.0-expected.gir
@@ -980,24 +980,6 @@ is invoked.">
         </parameter>
       </parameters>
     </function>
-    <function name="test_callback_infinite"
-              c:identifier="test_callback_infinite"
-              doc="Infinite - callback persists forever.">
-      <return-value transfer-ownership="none">
-        <type name="int" c:type="int"/>
-      </return-value>
-      <parameters>
-        <parameter name="callback"
-                   transfer-ownership="none"
-                   scope="infinite"
-                   closure="1">
-          <type name="TestCallbackUserData" c:type="TestCallbackUserData"/>
-        </parameter>
-        <parameter name="user_data" transfer-ownership="none">
-          <type name="any" c:type="gpointer"/>
-        </parameter>
-      </parameters>
-    </function>
     <function name="test_callback_thaw_async"
               c:identifier="test_callback_thaw_async">
       <return-value transfer-ownership="none">
diff --git a/gir/everything.c b/gir/everything.c
index 1ac73f6..cee6a2b 100644
--- a/gir/everything.c
+++ b/gir/everything.c
@@ -1978,24 +1978,6 @@ test_callback_thaw_async (void)
   return retval;
 }
 
-/**
- * test_callback_infinite:
- * @callback: (scope infinite):
- *
- * Infinite - callback persists forever.
- **/
-
-static GSList *infinite_callbacks = NULL;
-
-int
-test_callback_infinite (TestCallbackUserData callback,
-                       gpointer user_data)
-{
-  infinite_callbacks = g_slist_prepend(infinite_callbacks, callback);
-
-  return callback(user_data);
-}
-
 void
 test_async_ready_callback (GAsyncReadyCallback callback)
 {
diff --git a/gir/everything.h b/gir/everything.h
index 8afe8fa..395d142 100644
--- a/gir/everything.h
+++ b/gir/everything.h
@@ -347,9 +347,6 @@ int test_callback_thaw_notifications (void);
 void test_callback_async (TestCallbackUserData callback, gpointer user_data);
 int test_callback_thaw_async (void);
 
-int test_callback_infinite (TestCallbackUserData callback,
-                           gpointer user_data);
-
 void test_async_ready_callback (GAsyncReadyCallback callback);
 
 void test_obj_instance_method_callback (TestObj *obj, TestCallback callback);



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