[nautilus] a11y: remove some unused code



commit 2160de69245ad15826f6aed1a5ef15455d7851d0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 14 10:58:59 2011 -0400

    a11y: remove some unused code

 eel/eel-accessibility.c |   39 --------------------------------
 eel/eel-accessibility.h |   56 -----------------------------------------------
 2 files changed, 0 insertions(+), 95 deletions(-)
---
diff --git a/eel/eel-accessibility.c b/eel/eel-accessibility.c
index 6353650..8056efe 100644
--- a/eel/eel-accessibility.c
+++ b/eel/eel-accessibility.c
@@ -333,45 +333,6 @@ eel_accessibility_text_get_character_count (AtkText *text)
 	return gtk_text_buffer_get_char_count (util->buffer);
 }
 
-static void
-eel_accessibility_simple_text_interface_init (AtkTextIface *iface)
-{
-	iface->get_text                = eel_accessibility_text_get_text;
-	iface->get_character_at_offset = eel_accessibility_text_get_character_at_offset;
-	iface->get_text_before_offset  = eel_accessibility_text_get_text_before_offset;
-	iface->get_text_at_offset      = eel_accessibility_text_get_text_at_offset;
-	iface->get_text_after_offset   = eel_accessibility_text_get_text_after_offset;
-	iface->get_character_count     = eel_accessibility_text_get_character_count;
-
-/*	iface->get_caret_offset = eel_accessibility_text_get_caret_offset;
-	iface->set_caret_offset = eel_accessibility_text_set_caret_offset;
-	iface->get_selection = eel_accessibility_text_get_selection;
-	iface->get_n_selections = eel_accessibility_text_get_n_selections;
-	iface->add_selection = eel_accessibility_text_add_selection;
-	iface->remove_selection = eel_accessibility_text_remove_selection;
-	iface->set_selection = eel_accessibility_text_set_selection;
-	iface->get_run_attributes = eel_accessibility_text_get_run_attributes;
-	iface->get_default_attributes = eel_accessibility_text_get_default_attributes;
-	iface->get_character_extents = eel_accessibility_text_get_character_extents;
-	iface->get_offset_at_point = eel_accessibility_text_get_offset_at_point; */
-}
-
-void
-eel_accessibility_add_simple_text (GType type)
-{
-	const GInterfaceInfo simple_text_info = {
-		(GInterfaceInitFunc)
-		eel_accessibility_simple_text_interface_init,
-		(GInterfaceFinalizeFunc) NULL,
-		NULL
-	};
-
-	g_return_if_fail (type != G_TYPE_INVALID);
-
-	g_type_add_interface_static (
-		type, ATK_TYPE_TEXT, &simple_text_info);
-}
-
 GType
 eel_accessible_text_get_type (void)
 {
diff --git a/eel/eel-accessibility.h b/eel/eel-accessibility.h
index 72db978..3f53968 100644
--- a/eel/eel-accessibility.h
+++ b/eel/eel-accessibility.h
@@ -92,61 +92,5 @@ typedef struct {
 } EelAccessibleTextIface;
 
 GType eel_accessible_text_get_type      (void);
-void  eel_accessibility_add_simple_text (GType type);
-
-/* From gail - should be unneccessary when AtkObjectFactory is fixed */
-#define EEL_ACCESSIBLE_FACTORY(type, factory_name, type_as_function, opt_create_accessible)	\
-										\
-static GType									\
-type_as_function ## _factory_get_accessible_type (void)				\
-{										\
-  return type;									\
-}										\
-										\
-static AtkObject*								\
-type_as_function ## _factory_create_accessible (GObject *obj)			\
-{										\
-  AtkObject *accessible;							\
-										\
-  g_assert (G_IS_OBJECT (obj));  						\
-										\
-  accessible = opt_create_accessible (obj);					\
-										\
-  return accessible;								\
-}										\
-										\
-static void									\
-type_as_function ## _factory_class_init (AtkObjectFactoryClass *klass)		\
-{										\
-  klass->create_accessible   = type_as_function ## _factory_create_accessible;	\
-  klass->get_accessible_type = type_as_function ## _factory_get_accessible_type;\
-}										\
-										\
-static GType									\
-type_as_function ## _factory_get_type (void)					\
-{										\
-  static GType t = 0;								\
-										\
-  if (!t)									\
-  {										\
-    static const GTypeInfo tinfo =						\
-    {										\
-      sizeof (AtkObjectFactoryClass),					\
-      NULL, NULL, (GClassInitFunc) type_as_function ## _factory_class_init,			\
-      NULL, NULL, sizeof (AtkObjectFactory), 0, NULL, NULL			\
-    };										\
-										\
-    t = g_type_register_static (						\
-	    ATK_TYPE_OBJECT_FACTORY, factory_name, &tinfo, 0);			\
-  }										\
-										\
-  return t;									\
-}
-
-#define EEL_OBJECT_SET_FACTORY(object_type, type_as_function)			\
-	atk_registry_set_factory_type (atk_get_default_registry (),		\
-				       object_type,				\
-				       type_as_function ## _factory_get_type ())
-
 
 #endif /* EEL_ACCESSIBILITY_H */



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