From: John Darrington Date: Mon, 14 Dec 2009 18:28:46 +0000 (+0100) Subject: Remove unused code X-Git-Tag: sid-i386-build122~5 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=fb4eeb650749403036535786a7d3660af0945e75 Remove unused code --- 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