diff --git a/gtk/a11y/gtkcellaccessible.c b/gtk/a11y/gtkcellaccessible.c index 3d39708ba9..f24b122e84 100644 --- a/gtk/a11y/gtkcellaccessible.c +++ b/gtk/a11y/gtkcellaccessible.c @@ -359,29 +359,6 @@ atk_component_interface_init (AtkComponentIface *iface) iface->grab_focus = gtk_cell_accessible_grab_focus; } -/** - * _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 8cd9ca7493..bf489d67f0 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 6a36c98fde..50869c9eeb 100644 --- a/gtk/a11y/gtkcellaccessibleparent.c +++ b/gtk/a11y/gtkcellaccessibleparent.c @@ -129,21 +129,6 @@ _gtk_cell_accessible_parent_get_renderer_state (GtkCellAccessibleParent *parent, return 0; } -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 3d79ac5eb8..1f00372bfd 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 56ba1c4b6a..06abfa04e2 100644 --- a/gtk/a11y/gtktreeviewaccessible.c +++ b/gtk/a11y/gtktreeviewaccessible.c @@ -1363,15 +1363,6 @@ gtk_tree_view_accessible_get_renderer_state (GtkCellAccessibleParent *parent, return flags; } -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;