[gnumeric] Remove unused functions.



commit 12603deb2cc98591c5fdb38487d87d714f07d8b0
Author: Morten Welinder <terra gnome org>
Date:   Mon May 23 09:36:25 2011 -0400

    Remove unused functions.

 ChangeLog                  |    2 ++
 src/func.c                 |    2 +-
 src/func.h                 |    7 -------
 src/widgets/gnm-notebook.c |   16 ----------------
 src/widgets/gnm-notebook.h |    1 -
 5 files changed, 3 insertions(+), 25 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index aa83831..41aa1d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-05-23  Morten Welinder  <terra gnome org>
 
+	* src/func.c (function_iterate_do_value): Make static.
+
 	* src/parser.y: Make yyparse static.
 
 2011-05-23  Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/func.c b/src/func.c
index 8e73649..1a9fb29 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1862,7 +1862,7 @@ cb_iterate_cellrange (GnmCellIter const *iter, gpointer user)
  *
  * Helper routine for function_iterate_argument_values.
  */
-GnmValue *
+static GnmValue *
 function_iterate_do_value (GnmEvalPos const  *ep,
 			   FunctionIterateCB  callback,
 			   gpointer	      closure,
diff --git a/src/func.h b/src/func.h
index ab40680..3e2ddc3 100644
--- a/src/func.h
+++ b/src/func.h
@@ -282,13 +282,6 @@ GnmValue *function_iterate_argument_values (GnmEvalPos const *ep,
 					    GnmExprConstPtr const *argv,
 					    gboolean strict,
 					    CellIterFlags iter_flags);
-GnmValue *function_iterate_do_value	(GnmEvalPos const   *ep,
-					 FunctionIterateCB   cb,
-					 gpointer            user_data,
-					 GnmValue const     *value,
-					 gboolean            strict,
-					 CellIterFlags	     iter_flags);
-
 
 G_END_DECLS
 
diff --git a/src/widgets/gnm-notebook.c b/src/widgets/gnm-notebook.c
index 0e09001..415ddad 100644
--- a/src/widgets/gnm-notebook.c
+++ b/src/widgets/gnm-notebook.c
@@ -8437,22 +8437,6 @@ gnm_notebook_move_tab (GnmNotebook *nb, GtkWidget *label, int newpos)
 }
 
 void
-gnm_notebook_set_tab_visible (GnmNotebook *nb, int page, gboolean viz)
-{
-	GtkWidget *dummy;
-	g_return_if_fail (IS_GNM_NOTEBOOK (nb));
-
-	dummy = gtk_notebook_get_nth_page (GTK_NOTEBOOK (nb), page);
-	if (!dummy)
-		return;
-
-	if (viz)
-		gtk_widget_show (dummy);
-	else
-		gtk_widget_hide (dummy);
-}
-
-void
 gnm_notebook_set_current_page (GnmNotebook *nb, int page)
 {
 	gtk_notebook_set_current_page (GTK_NOTEBOOK (nb), page);
diff --git a/src/widgets/gnm-notebook.h b/src/widgets/gnm-notebook.h
index 1b10586..9dae466 100644
--- a/src/widgets/gnm-notebook.h
+++ b/src/widgets/gnm-notebook.h
@@ -36,7 +36,6 @@ GtkWidget *     gnm_notebook_get_nth_label (GnmNotebook *nb, int n);
 void            gnm_notebook_insert_tab (GnmNotebook *nb, GtkWidget *label,
 					 int pos);
 void            gnm_notebook_move_tab (GnmNotebook *nb, GtkWidget *label, int newpos);
-void            gnm_notebook_set_tab_visible (GnmNotebook *nb, int page, gboolean viz);
 void            gnm_notebook_set_current_page (GnmNotebook *nb, int page);
 void            gnm_notebook_prev_page (GnmNotebook *nb);
 void            gnm_notebook_next_page (GnmNotebook *nb);



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