[gjs] native: Remove unused argument
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] native: Remove unused argument
- Date: Thu, 7 Mar 2013 21:59:01 +0000 (UTC)
commit ad376ca5d6e7695b4200debe6a3fae6260178083
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Feb 27 18:39:48 2013 -0500
native: Remove unused argument
https://bugzilla.gnome.org/show_bug.cgi?id=694873
gjs/importer.c | 3 +--
gjs/native.c | 10 +---------
gjs/native.h | 3 +--
3 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/gjs/importer.c b/gjs/importer.c
index 0a4b1c9..001a252 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -235,7 +235,6 @@ import_native_file(JSContext *context,
const char *full_path)
{
JSObject *module_obj;
- GjsNativeFlags flags;
JSBool retval = JS_FALSE;
gjs_debug(GJS_DEBUG_IMPORTER,
@@ -257,7 +256,7 @@ import_native_file(JSContext *context,
if (!define_meta_properties(context, module_obj, full_path, name, obj))
goto out;
- if (!gjs_import_native_module(context, module_obj, full_path, &flags))
+ if (!gjs_import_native_module(context, module_obj, full_path))
goto out;
if (!finish_import(context, name))
diff --git a/gjs/native.c b/gjs/native.c
index b7aa3d9..168718b 100644
--- a/gjs/native.c
+++ b/gjs/native.c
@@ -184,7 +184,6 @@ gjs_is_registered_native_module(JSContext *context,
* @context:
* @module_obj:
* @filename: filename or %NULL
- * @flags_p:
*
* Imports a native module by g_module_open a shared library.
* If @filename is %NULL, do not dlopen, assume the library
@@ -193,17 +192,13 @@ gjs_is_registered_native_module(JSContext *context,
JSBool
gjs_import_native_module(JSContext *context,
JSObject *module_obj,
- const char *filename,
- GjsNativeFlags *flags_p)
+ const char *filename)
{
GModule *gmodule = NULL;
GjsNativeModule *native_module;
JSObject *parent;
jsval tmp;
- if (flags_p)
- *flags_p = 0;
-
if (filename != NULL) {
/* Vital to load in global scope so any dependent libs
* are loaded into the main app. We don't want a second
@@ -237,9 +232,6 @@ gjs_import_native_module(JSContext *context,
return JS_FALSE;
}
- if (flags_p)
- *flags_p = native_module->flags;
-
if (gmodule) {
/* make the module resident, which makes the close() a no-op
* (basically we leak the module permanently)
diff --git a/gjs/native.h b/gjs/native.h
index 8b4e923..0dfde5d 100644
--- a/gjs/native.h
+++ b/gjs/native.h
@@ -100,8 +100,7 @@ gboolean gjs_is_registered_native_module(JSContext *context,
*/
JSBool gjs_import_native_module (JSContext *context,
JSObject *module_obj,
- const char *filename,
- GjsNativeFlags *flags_p);
+ const char *filename);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]