[gnome-builder] libide/core: remove unnecessary getter
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/core: remove unnecessary getter
- Date: Fri, 19 Aug 2022 00:41:39 +0000 (UTC)
commit 616da917d7ff8983ec0ef5aa03f4fbc867388cd4
Author: Christian Hergert <chergert redhat com>
Date: Thu Aug 18 17:38:48 2022 -0700
libide/core: remove unnecessary getter
This appears to work without this now that we fixed some other things.
src/libide/core/ide-layered-settings.c | 24 ------------------------
1 file changed, 24 deletions(-)
---
diff --git a/src/libide/core/ide-layered-settings.c b/src/libide/core/ide-layered-settings.c
index 716abbfdb..1171b3a07 100644
--- a/src/libide/core/ide-layered-settings.c
+++ b/src/libide/core/ide-layered-settings.c
@@ -527,30 +527,6 @@ ide_layered_settings_bind_with_mapping (IdeLayeredSettings *self,
g_settings_bind_with_mapping (ide_layered_settings_get_primary_settings (self),
key, object, property, (flags & ~G_SETTINGS_BIND_GET),
NULL, set_mapping, user_data, set_destroy);
-
- /* Get initial value in case our memory settings doesn't have it */
- if ((flags & G_SETTINGS_BIND_GET) != 0)
- {
- GObjectClass *object_class = G_OBJECT_GET_CLASS (object);
- GParamSpec *pspec = g_object_class_find_property (object_class, property);
-
- if (pspec != NULL)
- {
- g_autoptr(GVariant) value = ide_layered_settings_get_value (self, key);
- g_auto(GValue) gvalue = G_VALUE_INIT;
- gboolean ret;
-
- g_value_init (&gvalue, pspec->value_type);
-
- if (get_mapping)
- ret = get_mapping (&gvalue, value, user_data);
- else
- ret = g_settings_get_mapping (&gvalue, value, NULL);
-
- if (ret)
- g_object_set_property (object, pspec->name, &gvalue);
- }
- }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]