[seed] Remove arg_info param from seed_gi_make_argument().



commit 9989d47738853ec7226387b3ffbb50858d323037
Author: Steve Frécinaux <code istique net>
Date:   Tue Dec 15 14:39:21 2009 +0100

    Remove arg_info param from seed_gi_make_argument().
    
    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 |    2 +-
 libseed/seed-engine.c  |    3 +--
 libseed/seed-structs.c |   10 ++++------
 libseed/seed-types.c   |    4 ++--
 libseed/seed-types.h   |    1 -
 5 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/libseed/seed-closure.c b/libseed/seed-closure.c
index b74fb3f..620d824 100644
--- a/libseed/seed-closure.c
+++ b/libseed/seed-closure.c
@@ -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)
     {
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index b7d4a05..eda95b3 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -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,
diff --git a/libseed/seed-structs.c b/libseed/seed-structs.c
index 0f9a77e..8ca9067 100644
--- a/libseed/seed-structs.c
+++ b/libseed/seed-structs.c
@@ -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);
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index f30bf70..571cc45 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -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);
 
diff --git a/libseed/seed-types.h b/libseed/seed-types.h
index 8f79a53..55ceb80 100644
--- a/libseed/seed-types.h
+++ b/libseed/seed-types.h
@@ -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,



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