From: Matthias Clasen Date: Mon, 5 Jul 2010 23:48:04 +0000 (-0400) Subject: Remove a redundant branch X-Git-Tag: 2.25.11~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e97c96654d2c0f637ea20b22f0d70aa12c7cfab;p=platform%2Fupstream%2Fglib.git Remove a redundant branch Since the name has been interned already at pspec creation time, we can just call g_intern_string(). --- diff --git a/gobject/gbinding.c b/gobject/gbinding.c index 8bb91a83b..06aa7f43a 100644 --- a/gobject/gbinding.c +++ b/gobject/gbinding.c @@ -333,10 +333,7 @@ on_source_notify (GObject *gobject, if (binding->is_frozen) return; - if (pspec->flags & G_PARAM_STATIC_NAME) - p_name = g_intern_static_string (pspec->name); - else - p_name = g_intern_string (pspec->name); + p_name = g_intern_string (pspec->name); if (p_name != binding->source_property) return; @@ -377,10 +374,7 @@ on_target_notify (GObject *gobject, if (binding->is_frozen) return; - if (pspec->flags & G_PARAM_STATIC_NAME) - p_name = g_intern_static_string (pspec->name); - else - p_name = g_intern_string (pspec->name); + p_name = g_intern_string (pspec->name); if (p_name != binding->target_property) return;