[nautilus] eel: remove unused code



commit 06d561a92cc8747828c0aa6f330cf81407f2b0a1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jan 3 18:05:44 2013 +0100

    eel: remove unused code

 eel/eel-accessibility.c |   40 ----------------------------------------
 eel/eel-accessibility.h |    3 ---
 2 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/eel/eel-accessibility.c b/eel/eel-accessibility.c
index 2e8a321..22b22df 100644
--- a/eel/eel-accessibility.c
+++ b/eel/eel-accessibility.c
@@ -42,46 +42,6 @@ eel_accessibility_set_up_label_widget_relation (GtkWidget *label, GtkWidget *wid
 	atk_object_add_relationship (atk_widget, ATK_RELATION_LABELLED_BY, atk_label);
 }
 
-GType
-eel_accessibility_create_accessible_gtype (const char *type_name,
-					   GtkWidget *widget,
-					   GClassInitFunc class_init)
-{
-	GType atk_type, parent_atk_type;
-	GTypeQuery query;
-	AtkObject *parent_atk;
-	GtkWidgetClass *parent_class, *klass;
-
-	if ((atk_type = g_type_from_name (type_name))) {
-		return atk_type;
-	}
-
-	klass = GTK_WIDGET_CLASS (G_OBJECT_GET_CLASS (widget));
-	parent_class = klass;
-
-	while (klass->get_accessible == parent_class->get_accessible) {
-		parent_class = g_type_class_peek_parent (parent_class);
-	}
-
-	parent_atk = parent_class->get_accessible (widget);
-	parent_atk_type = G_TYPE_FROM_INSTANCE (parent_atk);
-
-	if (!parent_atk_type) {
-		return G_TYPE_INVALID;
-	}
-
-	/* Figure out the size of the class and instance 
-	 * we are deriving from
-	 */
-	g_type_query (parent_atk_type, &query);
-
-	/* Register the type */
-	return g_type_register_static_simple (parent_atk_type, type_name,
-					      query.class_size, class_init,
-					      query.instance_size, NULL, 0);
-}
-
-
 static GQuark
 get_quark_accessible (void)
 {
diff --git a/eel/eel-accessibility.h b/eel/eel-accessibility.h
index 8a00000..2739466 100644
--- a/eel/eel-accessibility.h
+++ b/eel/eel-accessibility.h
@@ -37,9 +37,6 @@ AtkObject    *eel_accessibility_get_atk_object        (gpointer              obj
 gpointer      eel_accessibility_get_gobject           (AtkObject            *object);
 AtkObject    *eel_accessibility_set_atk_object_return (gpointer              object,
 						       AtkObject            *atk_object);
-GType         eel_accessibility_create_accessible_gtype (const char *type_name,
-							 GtkWidget *widget,
-							 GClassInitFunc class_init);
 
 char*         eel_accessibility_text_get_text         (AtkText              *text,
                                                        gint                 start_pos,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]