From 23818d1e61bdf33e5f19ba1c0993bacfcdc113db Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 8 Apr 2011 09:14:50 -0400 Subject: [PATCH] GSettings: remove more asserts Same logic as the last commit on this topic, applied to the other functions too. --- gio/gsettings.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gio/gsettings.c b/gio/gsettings.c index af2ab3c..74232f0 100644 --- a/gio/gsettings.c +++ b/gio/gsettings.c @@ -345,8 +345,6 @@ settings_backend_path_changed (GObject *target, GSettings *settings = G_SETTINGS (target); gboolean ignore_this; - g_assert (settings->priv->backend == backend); - if (g_str_has_prefix (settings->priv->path, path)) g_signal_emit (settings, g_settings_signals[SIGNAL_CHANGE_EVENT], 0, NULL, 0, &ignore_this); @@ -363,8 +361,6 @@ settings_backend_keys_changed (GObject *target, gboolean ignore_this; gint i; - g_assert (settings->priv->backend == backend); - for (i = 0; settings->priv->path[i] && settings->priv->path[i] == path[i]; i++); @@ -405,8 +401,6 @@ settings_backend_writable_changed (GObject *target, gboolean ignore_this; gint i; - g_assert (settings->priv->backend == backend); - for (i = 0; key[i] == settings->priv->path[i]; i++); if (settings->priv->path[i] == '\0' && @@ -423,8 +417,6 @@ settings_backend_path_writable_changed (GObject *target, GSettings *settings = G_SETTINGS (target); gboolean ignore_this; - g_assert (settings->priv->backend == backend); - if (g_str_has_prefix (settings->priv->path, path)) g_signal_emit (settings, g_settings_signals[SIGNAL_WRITABLE_CHANGE_EVENT], 0, (GQuark) 0, &ignore_this); -- 2.7.4