[nautilus] eel: remove more unused code



commit 6a7d30d1d92ab7cb2a3ca3ba29034329d50bfbae
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jan 3 19:35:36 2013 +0100

    eel: remove more unused code

 eel/eel-accessibility.c |   64 -----------------------------------------------
 eel/eel-accessibility.h |    3 --
 2 files changed, 0 insertions(+), 67 deletions(-)
---
diff --git a/eel/eel-accessibility.c b/eel/eel-accessibility.c
index 22b22df..dbdc147 100644
--- a/eel/eel-accessibility.c
+++ b/eel/eel-accessibility.c
@@ -43,19 +43,6 @@ eel_accessibility_set_up_label_widget_relation (GtkWidget *label, GtkWidget *wid
 }
 
 static GQuark
-get_quark_accessible (void)
-{
-	static GQuark quark_accessible_object = 0;
-
-	if (!quark_accessible_object) {
-		quark_accessible_object = g_quark_from_static_string
-			("accessible-object");
-	}
-
-	return quark_accessible_object;
-}
-
-static GQuark
 get_quark_gobject (void)
 {
 	static GQuark quark_accessible_gobject = 0;
@@ -69,20 +56,6 @@ get_quark_gobject (void)
 }
 
 /**
- * eel_accessibility_get_atk_object:
- * @object: a GObject of some sort
- * 
- * gets an AtkObject associated with a GObject
- * 
- * Return value: the associated accessible if one exists or NULL
- **/
-AtkObject *
-eel_accessibility_get_atk_object (gpointer object)
-{
-	return g_object_get_qdata (object, get_quark_accessible ());
-}
-
-/**
  * eel_accessibility_get_gobject:
  * @object: an AtkObject
  * 
@@ -97,43 +70,6 @@ eel_accessibility_get_gobject (AtkObject *object)
 	return g_object_get_qdata (G_OBJECT (object), get_quark_gobject ());
 }
 
-static void
-eel_accessibility_destroy (gpointer data,
-			   GObject *where_the_object_was)
-{
-	g_object_set_qdata
-		(G_OBJECT (data), get_quark_gobject (), NULL);
-	atk_object_notify_state_change
-		(ATK_OBJECT (data), ATK_STATE_DEFUNCT, TRUE);
-	g_object_unref (data);
-}
-
-/**
- * eel_accessibility_set_atk_object_return:
- * @object: a GObject
- * @atk_object: it's AtkObject
- * 
- * used to register and return a new accessible object for something
- * 
- * Return value: @atk_object.
- **/
-AtkObject *
-eel_accessibility_set_atk_object_return (gpointer   object,
-					 AtkObject *atk_object)
-{
-	atk_object_initialize (atk_object, object);
-
-	if (!ATK_IS_GOBJECT_ACCESSIBLE (atk_object)) {
-		g_object_set_qdata_full
-			(object, get_quark_accessible (), atk_object,
-			 (GDestroyNotify)eel_accessibility_destroy);
-		g_object_set_qdata
-			(G_OBJECT (atk_object), get_quark_gobject (), object);
-	}
-
-	return atk_object;
-}
-
 static GailTextUtil *
 get_simple_text (gpointer object)
 {
diff --git a/eel/eel-accessibility.h b/eel/eel-accessibility.h
index 2739466..c6971bc 100644
--- a/eel/eel-accessibility.h
+++ b/eel/eel-accessibility.h
@@ -33,10 +33,7 @@
 
 void eel_accessibility_set_up_label_widget_relation (GtkWidget *label, GtkWidget *widget);
 
-AtkObject    *eel_accessibility_get_atk_object        (gpointer              object);
 gpointer      eel_accessibility_get_gobject           (AtkObject            *object);
-AtkObject    *eel_accessibility_set_atk_object_return (gpointer              object,
-						       AtkObject            *atk_object);
 
 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]