[seed] Remove unused "arg_type" argument in make_native_closure.
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] Remove unused "arg_type" argument in make_native_closure.
- Date: Wed, 16 Dec 2009 04:16:33 +0000 (UTC)
commit 36ec11b954ed7a1ded45927a4788adf8c0ed0dcb
Author: Steve Frécinaux <code istique net>
Date: Tue Dec 15 14:33:27 2009 +0100
Remove unused "arg_type" argument in make_native_closure.
This argument is kept around in the closure but isn't used anywhere,
so let's just drop it.
https://bugzilla.gnome.org/show_bug.cgi?id=604617
libseed/seed-closure.c | 5 +----
libseed/seed-closure.h | 2 --
libseed/seed-types.c | 1 -
3 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/libseed/seed-closure.c b/libseed/seed-closure.c
index 620d824..2f3c3fd 100644
--- a/libseed/seed-closure.c
+++ b/libseed/seed-closure.c
@@ -36,7 +36,6 @@ seed_closure_finalize (JSObjectRef object)
g_free (privates->cif);
g_callable_info_free_closure (privates->info, privates->closure);
g_base_info_unref ((GIBaseInfo *) privates->info);
- g_base_info_unref ((GIBaseInfo *) privates->arg_info);
JSValueUnprotect (eng->context, object);
}
@@ -275,7 +274,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
SeedNativeClosure *
seed_make_native_closure (JSContextRef ctx,
GICallableInfo * info,
- GIArgInfo * arg_info, JSValueRef function)
+ JSValueRef function)
{
ffi_cif *cif;
ffi_closure *closure;
@@ -301,8 +300,6 @@ seed_make_native_closure (JSContextRef ctx,
privates = g_new0 (SeedNativeClosure, 1);
privates->info = (GICallableInfo *) g_base_info_ref ((GIBaseInfo *) info);
- privates->arg_info =
- (GIArgInfo *) g_base_info_ref ((GIBaseInfo *) arg_info);
privates->function = function;
privates->cif = cif;
diff --git a/libseed/seed-closure.h b/libseed/seed-closure.h
index 644dafb..6062aa9 100644
--- a/libseed/seed-closure.h
+++ b/libseed/seed-closure.h
@@ -36,7 +36,6 @@ typedef struct _SeedClosure
typedef struct _SeedNativeClosure
{
GICallableInfo *info;
- GIArgInfo *arg_info;
JSValueRef function;
ffi_closure *closure;
@@ -47,7 +46,6 @@ extern JSClassRef seed_native_callback_class;
SeedNativeClosure *seed_make_native_closure (JSContextRef ctx,
GICallableInfo * info,
- GIArgInfo * arg_info,
JSValueRef function);
GClosure *seed_closure_new (JSContextRef ctx,
JSObjectRef function,
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index 571cc45..d5a9ea2 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -678,7 +678,6 @@ seed_gi_make_argument (JSContextRef ctx,
{
SeedNativeClosure *privates = seed_make_native_closure (ctx,
(GICallableInfo *) interface,
- arg_info,
value);
arg->v_pointer = privates->closure;
g_base_info_unref (interface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]