[gjs: 21/26] atoms: Remove unused argument
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 21/26] atoms: Remove unused argument
- Date: Sun, 14 Apr 2019 14:05:08 +0000 (UTC)
commit ea9b5412cc8da24baeb9da4da18adc0cb90e77d7
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Mar 24 20:02:49 2019 -0700
atoms: Remove unused argument
The constructor of GjsAtoms doesn't need a JSContext argument. Any
fallible initialization is done in GjsAtoms::init_atoms().
gjs/atoms.h | 2 +-
gjs/context.cpp | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/atoms.h b/gjs/atoms.h
index 9005e5ef..dbe536a1 100644
--- a/gjs/atoms.h
+++ b/gjs/atoms.h
@@ -100,7 +100,7 @@ struct GjsSymbolAtom : GjsAtom {
class GjsAtoms {
public:
- explicit GjsAtoms(JSContext* cx) {}
+ GjsAtoms(void) {}
~GjsAtoms(void) {} // prevents giant destructor from being inlined
GJS_JSAPI_RETURN_CONVENTION bool init_atoms(JSContext* cx);
diff --git a/gjs/context.cpp b/gjs/context.cpp
index d90e540c..3411771b 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -447,7 +447,6 @@ gjs_context_constructed(GObject *object)
GjsContextPrivate::GjsContextPrivate(JSContext* cx, GjsContext* public_context)
: m_public_context(public_context),
m_cx(cx),
- m_atoms(cx),
m_environment_preparer(cx) {
m_owner_thread = g_thread_self();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]