[glib/gobject-performance-2] Remove now useless recursion check
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/gobject-performance-2] Remove now useless recursion check
- Date: Mon, 30 Nov 2009 13:45:08 +0000 (UTC)
commit 133a51ff3a1d35a465c6903794b8c7410298ce0e
Author: Alexander Larsson <alexl redhat com>
Date: Mon Nov 30 14:40:13 2009 +0100
Remove now useless recursion check
node->data->class.class can't ever be set since we just checked it.
This is leftover from where we previously initialized the parent
type inside the if and is not needed anymore.
gobject/gtype.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index b216ad8..54c2a07 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -2870,8 +2870,6 @@ g_type_class_ref (GType type)
if (!node->data->class.class) /* class uninitialized */
{
- if (node->data->class.class) /* class was initialized during parent class initialization? */
- INVALID_RECURSION ("g_type_plugin_*", node->plugin, NODE_NAME (node));
type_class_init_Wm (node, pclass);
G_WRITE_UNLOCK (&type_rw_lock);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]