[libpeas] Do not marshall out arguments in extension subclasses



commit cc0f1ed24d8a557e923a4ee1bbd44c37de777d58
Author: Steve Frécinaux <code istique net>
Date:   Thu Jan 27 00:44:36 2011 +0100

    Do not marshall out arguments in extension subclasses
    
    This is pointless as out args are pointers and the pointer target
    doesn't change when the pointer is copied from the argv to the
    GIArgument.

 libpeas/peas-extension-subclasses.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/libpeas/peas-extension-subclasses.c b/libpeas/peas-extension-subclasses.c
index 020f2bf..4467a04 100644
--- a/libpeas/peas-extension-subclasses.c
+++ b/libpeas/peas-extension-subclasses.c
@@ -85,22 +85,7 @@ handle_method_impl (ffi_cif  *cif,
 
   peas_extension_callv (instance, impl->method_name, arguments, &return_value);
 
-  for (i = 1; i < n_args; i++)
-    {
-      GIDirection direction;
-
-      g_callable_info_load_arg (impl->info, i, &arg_info);
-      direction = g_arg_info_get_direction (&arg_info);
-
-      if (direction == GI_DIRECTION_OUT || direction == GI_DIRECTION_INOUT)
-        {
-          g_arg_info_load_type (&arg_info, &type_info);
-          peas_gi_argument_to_pointer (&type_info, &arguments[i-1], args[i]);
-        }
-    }
-
   g_callable_info_load_return_type (impl->info, &return_type_info);
-
   if (g_type_info_get_tag (&return_type_info) != GI_TYPE_TAG_VOID)
     peas_gi_argument_to_pointer (&return_type_info, &return_value, result);
 }



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