Remove arg_info param from seed_gi_make_argument().
authorSteve Frécinaux <code@istique.net>
Tue, 15 Dec 2009 13:39:21 +0000 (14:39 +0100)
committerTim Horton <hortont424@gmail.com>
Wed, 16 Dec 2009 04:06:10 +0000 (23:06 -0500)
This arg_info value was only used when triggering make_native_closure(),
and was even set to NULL in most calls of this function, so let's just
remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=604617

libseed/seed-closure.c
libseed/seed-engine.c
libseed/seed-structs.c
libseed/seed-types.c
libseed/seed-types.h

index b74fb3f..620d824 100644 (file)
@@ -182,7 +182,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
       exception = 0;
     }
 
-  seed_gi_make_argument (ctx, (JSValueRef) return_value, return_type, NULL,
+  seed_gi_make_argument (ctx, (JSValueRef) return_value, return_type,
                         &return_arg, 0);
   switch (return_tag)
     {
index b7d4a05..eda95b3 100644 (file)
@@ -477,8 +477,7 @@ seed_gobject_method_invoked (JSContextRef ctx,
       else if (dir == GI_DIRECTION_IN || dir == GI_DIRECTION_INOUT)
        {
 
-         if (!seed_gi_make_argument (ctx, arguments[i],
-                                     type_info, arg_info,
+         if (!seed_gi_make_argument (ctx, arguments[i], type_info,
                                      &in_args[n_in_args++], exception))
            {
              seed_make_exception (ctx, exception,
index 0f9a77e..8ca9067 100644 (file)
@@ -241,8 +241,7 @@ seed_union_set_property (JSContextRef context,
 
   field_type = g_field_info_get_type (field);
 
-  seed_gi_make_argument (context, value, field_type, NULL, &field_value,
-                        exception);
+  seed_gi_make_argument (context, value, field_type, &field_value, exception);
   ret = g_field_info_set_field (field, priv->pointer, &field_value);
 
   g_base_info_unref ((GIBaseInfo *) field_type);
@@ -284,8 +283,7 @@ seed_struct_set_property (JSContextRef context,
 
   field_type = g_field_info_get_type (field);
 
-  seed_gi_make_argument (context, value, field_type, NULL, &field_value,
-                        exception);
+  seed_gi_make_argument (context, value, field_type, &field_value, exception);
   ret = g_field_info_set_field (field, priv->pointer, &field_value);
 
   g_base_info_unref ((GIBaseInfo *) field_type);
@@ -740,8 +738,8 @@ seed_construct_struct_type_with_parameters (JSContextRef ctx,
                                          (JSObjectRef) parameters,
                                          jsprop_name, NULL);
 
-      seed_gi_make_argument (ctx, jsprop_value, field_type, NULL,
-                            &field_value, exception);
+      seed_gi_make_argument (ctx, jsprop_value, field_type, &field_value,
+                            exception);
       g_field_info_set_field (field, object, &field_value);
 
       g_base_info_unref ((GIBaseInfo *) field_type);
index f30bf70..571cc45 100644 (file)
@@ -446,8 +446,8 @@ gboolean
 seed_gi_make_argument (JSContextRef ctx,
                       JSValueRef value,
                       GITypeInfo * type_info,
-                      GIArgInfo * arg_info,
-                      GArgument * arg, JSValueRef * exception)
+                      GArgument * arg,
+                      JSValueRef * exception)
 {
   GITypeTag gi_tag = g_type_info_get_tag (type_info);
 
index 8f79a53..55ceb80 100644 (file)
@@ -39,7 +39,6 @@ gboolean seed_gvalue_from_seed_value (JSContextRef ctx,
 gboolean seed_gi_make_argument (JSContextRef ctx,
                                JSValueRef value,
                                GITypeInfo * type_info,
-                               GIArgInfo * arg_info,
                                GArgument * arg, JSValueRef * exception);
 JSValueRef seed_gi_argument_make_js (JSContextRef ctx,
                                     GArgument * arg,