[gjs/wip/ptomato/785657: 1/6] object: Remove unused argument
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/785657: 1/6] object: Remove unused argument
- Date: Wed, 23 Aug 2017 00:00:29 +0000 (UTC)
commit 9ad8a3a2587c11cb3bea69dda71099ebf4dda157
Author: Philip Chimento <philip endlessm com>
Date: Tue Aug 22 16:57:43 2017 -0700
object: Remove unused argument
gjs_object_prepare_shutdown() doesn't need to access the JSContext.
gi/object.cpp | 2 +-
gi/object.h | 3 +--
gjs/context.cpp | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gi/object.cpp b/gi/object.cpp
index 059b6ec..a072242 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1156,7 +1156,7 @@ gjs_object_clear_toggles(void)
}
void
-gjs_object_prepare_shutdown (JSContext *context)
+gjs_object_prepare_shutdown(void)
{
/* First, get rid of anything left over on the main context */
gjs_object_clear_toggles();
diff --git a/gi/object.h b/gi/object.h
index 69017ef..299c848 100644
--- a/gi/object.h
+++ b/gi/object.h
@@ -56,8 +56,7 @@ bool gjs_typecheck_is_object(JSContext *context,
JS::HandleObject obj,
bool throw_error);
-void gjs_object_prepare_shutdown (JSContext *context);
-
+void gjs_object_prepare_shutdown(void);
void gjs_object_clear_toggles(void);
void gjs_object_define_static_methods(JSContext *context,
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 3551986..3a0106c 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -240,7 +240,7 @@ gjs_context_dispose(GObject *object)
* the JS teardown and the C teardown. The JSObject proxies
* still exist, but point to NULL.
*/
- gjs_object_prepare_shutdown(js_context->context);
+ gjs_object_prepare_shutdown();
if (js_context->auto_gc_id > 0) {
g_source_remove (js_context->auto_gc_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]