[gtk+] a11y: Remove unused gtk_cell_accessible_set_cell_data()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Remove unused gtk_cell_accessible_set_cell_data()
- Date: Fri, 16 Dec 2011 04:00:09 +0000 (UTC)
commit c0fdcbf51358e48c1c51a0ea396ce58892b4f588
Author: Benjamin Otte <otte redhat com>
Date: Fri Dec 16 03:35:59 2011 +0100
a11y: Remove unused gtk_cell_accessible_set_cell_data()
gtk/a11y/gtkcellaccessible.c | 23 -----------------------
gtk/a11y/gtkcellaccessible.h | 1 -
gtk/a11y/gtkcellaccessibleparent.c | 15 ---------------
gtk/a11y/gtkcellaccessibleparent.h | 4 ----
gtk/a11y/gtktreeviewaccessible.c | 10 ----------
5 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/gtk/a11y/gtkcellaccessible.c b/gtk/a11y/gtkcellaccessible.c
index 3d39708..f24b122 100644
--- a/gtk/a11y/gtkcellaccessible.c
+++ b/gtk/a11y/gtkcellaccessible.c
@@ -360,29 +360,6 @@ atk_component_interface_init (AtkComponentIface *iface)
}
/**
- * _gtk_cell_accessible_set_cell_data:
- * @cell: a #GtkCellAccessible
- *
- * Sets the cell data to the row used by @cell. This is useful in
- * particular if you want to work with cell renderers.
- *
- * Note that this function is potentially slow, so be careful.
- **/
-void
-_gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell)
-{
- AtkObject *parent;
-
- g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
-
- parent = gtk_widget_get_accessible (cell->widget);
- if (parent == NULL)
- return;
-
- _gtk_cell_accessible_parent_set_cell_data (GTK_CELL_ACCESSIBLE_PARENT (parent), cell);
-}
-
-/**
* _gtk_cell_accessible_get_state:
* @cell: a #GtkCellAccessible
*
diff --git a/gtk/a11y/gtkcellaccessible.h b/gtk/a11y/gtkcellaccessible.h
index 8cd9ca7..bf489d6 100644
--- a/gtk/a11y/gtkcellaccessible.h
+++ b/gtk/a11y/gtkcellaccessible.h
@@ -54,7 +54,6 @@ GtkCellRendererState
void _gtk_cell_accessible_state_changed (GtkCellAccessible *cell,
GtkCellRendererState added,
GtkCellRendererState removed);
-void _gtk_cell_accessible_set_cell_data (GtkCellAccessible *cell);
void _gtk_cell_accessible_update_cache (GtkCellAccessible *cell);
void _gtk_cell_accessible_initialise (GtkCellAccessible *cell,
diff --git a/gtk/a11y/gtkcellaccessibleparent.c b/gtk/a11y/gtkcellaccessibleparent.c
index 6a36c98..50869c9 100644
--- a/gtk/a11y/gtkcellaccessibleparent.c
+++ b/gtk/a11y/gtkcellaccessibleparent.c
@@ -130,21 +130,6 @@ _gtk_cell_accessible_parent_get_renderer_state (GtkCellAccessibleParent *parent,
}
void
-_gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell)
-{
- GtkCellAccessibleParentIface *iface;
-
- g_return_if_fail (GTK_IS_CELL_ACCESSIBLE_PARENT (parent));
- g_return_if_fail (GTK_IS_CELL_ACCESSIBLE (cell));
-
- iface = GTK_CELL_ACCESSIBLE_PARENT_GET_IFACE (parent);
-
- if (iface->set_cell_data)
- (iface->set_cell_data) (parent, cell);
-}
-
-void
_gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell)
{
diff --git a/gtk/a11y/gtkcellaccessibleparent.h b/gtk/a11y/gtkcellaccessibleparent.h
index 3d79ac5..1f00372 100644
--- a/gtk/a11y/gtkcellaccessibleparent.h
+++ b/gtk/a11y/gtkcellaccessibleparent.h
@@ -63,8 +63,6 @@ struct _GtkCellAccessibleParentIface
GtkCellRendererState
( *get_renderer_state) (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
- void ( *set_cell_data) (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell);
/* actions */
void ( *expand_collapse) (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
@@ -93,8 +91,6 @@ int _gtk_cell_accessible_parent_get_child_index (GtkCellAccessibleParent *
GtkCellRendererState
_gtk_cell_accessible_parent_get_renderer_state(GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
-void _gtk_cell_accessible_parent_set_cell_data (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell);
void _gtk_cell_accessible_parent_expand_collapse (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell);
void _gtk_cell_accessible_parent_activate (GtkCellAccessibleParent *parent,
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
index 56ba1c4..06abfa0 100644
--- a/gtk/a11y/gtktreeviewaccessible.c
+++ b/gtk/a11y/gtktreeviewaccessible.c
@@ -1364,15 +1364,6 @@ gtk_tree_view_accessible_get_renderer_state (GtkCellAccessibleParent *parent,
}
static void
-gtk_tree_view_accessible_set_cell_data (GtkCellAccessibleParent *parent,
- GtkCellAccessible *cell)
-{
- set_cell_data (GTK_TREE_VIEW (gtk_accessible_get_widget (GTK_ACCESSIBLE (parent))),
- GTK_TREE_VIEW_ACCESSIBLE (parent),
- cell);
-}
-
-static void
gtk_tree_view_accessible_expand_collapse (GtkCellAccessibleParent *parent,
GtkCellAccessible *cell)
{
@@ -1442,7 +1433,6 @@ gtk_cell_accessible_parent_interface_init (GtkCellAccessibleParentIface *iface)
iface->grab_focus = gtk_tree_view_accessible_grab_cell_focus;
iface->get_child_index = gtk_tree_view_accessible_get_child_index;
iface->get_renderer_state = gtk_tree_view_accessible_get_renderer_state;
- iface->set_cell_data = gtk_tree_view_accessible_set_cell_data;
iface->expand_collapse = gtk_tree_view_accessible_expand_collapse;
iface->activate = gtk_tree_view_accessible_activate;
iface->edit = gtk_tree_view_accessible_edit;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]