[glib] GSettings: remove more asserts
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSettings: remove more asserts
- Date: Fri, 8 Apr 2011 13:16:05 +0000 (UTC)
commit 23818d1e61bdf33e5f19ba1c0993bacfcdc113db
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Apr 8 09:14:50 2011 -0400
GSettings: remove more asserts
Same logic as the last commit on this topic, applied to the other
functions too.
gio/gsettings.c | 8 --------
1 files changed, 0 insertions(+), 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]