[glib/gobject-speedups: 12/25] gobject: Drop an unused quark
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/gobject-speedups: 12/25] gobject: Drop an unused quark
- Date: Wed, 25 May 2022 15:02:06 +0000 (UTC)
commit 73adb3327bc76860c880a6cb9c6a3af2804643f6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 19 22:18:37 2022 -0400
gobject: Drop an unused quark
quark_in_construction is only used if
we don't have per-instance flags.
gobject/gobject.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index aa1573b1d7..0678f918c9 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -255,7 +255,9 @@ static GQuark quark_closure_array = 0;
static GQuark quark_weak_refs = 0;
static GQuark quark_toggle_refs = 0;
static GQuark quark_notify_queue;
+#ifndef HAVE_OPTIONAL_FLAGS
static GQuark quark_in_construction;
+#endif
static GParamSpecPool *pspec_pool = NULL;
static gulong gobject_signals[LAST_SIGNAL] = { 0, };
static guint (*floating_flag_handler) (GObject*, gint) = object_floating_flag_handler;
@@ -513,7 +515,9 @@ g_object_do_class_init (GObjectClass *class)
quark_weak_locations = g_quark_from_static_string ("GObject-weak-locations");
quark_toggle_refs = g_quark_from_static_string ("GObject-toggle-references");
quark_notify_queue = g_quark_from_static_string ("GObject-notify-queue");
+#ifndef HAVE_OPTIONAL_FLAGS
quark_in_construction = g_quark_from_static_string ("GObject-in-construction");
+#endif
pspec_pool = g_param_spec_pool_new (TRUE);
class->constructor = g_object_constructor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]