From fb4eeb650749403036535786a7d3660af0945e75 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 14 Dec 2009 19:28:46 +0100 Subject: [PATCH] Remove unused code --- src/ui/gui/dialog-common.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/ui/gui/dialog-common.c b/src/ui/gui/dialog-common.c index 7edbbe50..c61cb14a 100644 --- a/src/ui/gui/dialog-common.c +++ b/src/ui/gui/dialog-common.c @@ -23,34 +23,6 @@ #include "helper.h" -/* A (*GtkTreeCellDataFunc) function. - This function expects TREEMODEL to hold G_TYPE_BOXED, which is a pointer to a variable. - It renders the name of the variable into CELL. -*/ -void -XXX_cell_var_name (GtkTreeViewColumn *tree_column, - GtkCellRenderer *cell, - GtkTreeModel *treemodel, - GtkTreeIter *iter, - gpointer data) -{ - const struct variable *var; - GValue value = {0}; - - GtkTreePath *path = gtk_tree_model_get_path (treemodel, iter); - - gtk_tree_model_get_value (treemodel, iter, 0, &value); - - gtk_tree_path_free (path); - - var = g_value_get_boxed (&value); - - g_value_unset (&value); - - g_object_set (cell, "text", var_get_name (var), NULL); -} - - /* Returns FALSE if the variables represented by the union of the rows currently selected by SOURCE widget, and contents of the DEST -- 2.30.2