[glib] Remove a redundant branch
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove a redundant branch
- Date: Tue, 6 Jul 2010 03:16:07 +0000 (UTC)
commit 4e97c96654d2c0f637ea20b22f0d70aa12c7cfab
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 5 19:48:04 2010 -0400
Remove a redundant branch
Since the name has been interned already at pspec creation time,
we can just call g_intern_string().
gobject/gbinding.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/gobject/gbinding.c b/gobject/gbinding.c
index 8bb91a8..06aa7f4 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]