[gnumeric] unused functions



commit b093e64452dbf09bb13806de821820ce6de6f3c4
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu May 26 16:12:37 2011 -0600

    unused functions
    
    2011-05-26  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/application.c (gnm_app_workbook_get_by_uri): made static
    	(gnm_app_workbook_foreach): made static
    	* src/application.h (gnm_app_workbook_get_by_uri): deleted
    	(gnm_app_workbook_foreach): deleted
    	* src/search.c (gnm_search_replace_value): made static
    	* src/search.h (gnm_search_replace_value): deleted
    	* src/sheet-filter.c (gnm_filter_overlaps_range): made static
    	* src/sheet-filter.h (gnm_filter_overlaps_range): deleted

 ChangeLog          |   11 +++++++++++
 src/application.c  |    9 +++++++--
 src/application.h  |    2 --
 src/search.c       |   11 ++++++++++-
 src/search.h       |    7 -------
 src/sheet-filter.c |    2 +-
 src/sheet-filter.h |    1 -
 7 files changed, 29 insertions(+), 14 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d4902f7..2b90d59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2011-05-26  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* src/application.c (gnm_app_workbook_get_by_uri): made static
+	(gnm_app_workbook_foreach): made static
+	* src/application.h (gnm_app_workbook_get_by_uri): deleted
+	(gnm_app_workbook_foreach): deleted
+	* src/search.c (gnm_search_replace_value): made static
+	* src/search.h (gnm_search_replace_value): deleted
+	* src/sheet-filter.c (gnm_filter_overlaps_range): made static
+	* src/sheet-filter.h (gnm_filter_overlaps_range): deleted
+
+2011-05-26  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* src/rangefunc.c (gnm_range_minabs): deleted
 	(gnm_range_correl_est): deleted
 	* src/rangefunc.h (gnm_range_minabs): deleted
diff --git a/src/application.c b/src/application.c
index e3ae88b..60512c2 100644
--- a/src/application.c
+++ b/src/application.c
@@ -89,6 +89,8 @@ typedef struct {
 static GObjectClass *parent_klass;
 static GnmApp *app;
 
+static Workbook *gnm_app_workbook_get_by_uri (char const *uri);
+
 GObject *
 gnm_app_get_app (void)
 {
@@ -406,7 +408,10 @@ cb_workbook_uri (Workbook * wb, gpointer closure)
 	return TRUE;
 }
 
-Workbook *
+static gboolean
+gnm_app_workbook_foreach (GnmWbIterFunc cback, gpointer data);
+
+static Workbook *
 gnm_app_workbook_get_by_uri (char const *uri)
 {
 	struct wb_uri_closure closure;
@@ -420,7 +425,7 @@ gnm_app_workbook_get_by_uri (char const *uri)
 	return closure.wb;
 }
 
-gboolean
+static gboolean
 gnm_app_workbook_foreach (GnmWbIterFunc cback, gpointer data)
 {
 	GList *l;
diff --git a/src/application.h b/src/application.h
index 04538a1..ed4c871 100644
--- a/src/application.h
+++ b/src/application.h
@@ -17,11 +17,9 @@ GObject     *gnm_app_get_app (void);
 void         gnm_app_workbook_list_add     (Workbook *wb);
 void         gnm_app_workbook_list_remove  (Workbook *wb);
 GList *      gnm_app_workbook_list	   (void);
-Workbook    *gnm_app_workbook_get_by_uri   (char const *uri);
 Workbook    *gnm_app_workbook_get_by_name  (char const *name,
 					    char const *ref_uri);
 Workbook    *gnm_app_workbook_get_by_index (int i);
-gboolean     gnm_app_workbook_foreach	   (GnmWbIterFunc func, gpointer data);
 
 GSList      *gnm_app_history_get_list	   (int max_elements);
 void	     gnm_app_history_add	   (char const *filename, const char *mimetype);
diff --git a/src/search.c b/src/search.c
index 9ca2ea2..ed2ba32 100644
--- a/src/search.c
+++ b/src/search.c
@@ -49,6 +49,15 @@ enum {
 
 /* ------------------------------------------------------------------------- */
 
+typedef struct {
+	GnmCell *cell;
+} GnmSearchReplaceValueResult;
+static gboolean
+gnm_search_replace_value (GnmSearchReplace *sr,
+			  const GnmEvalPos *ep,
+			  GnmSearchReplaceValueResult *res);
+
+/* ------------------------------------------------------------------------- */
 static gboolean
 check_number (GnmSearchReplace *sr)
 {
@@ -409,7 +418,7 @@ gnm_search_replace_cell (GnmSearchReplace *sr,
 
 /* ------------------------------------------------------------------------- */
 
-gboolean
+static gboolean
 gnm_search_replace_value (GnmSearchReplace *sr,
 			  const GnmEvalPos *ep,
 			  GnmSearchReplaceValueResult *res)
diff --git a/src/search.h b/src/search.h
index 97ef710..93c6031 100644
--- a/src/search.h
+++ b/src/search.h
@@ -129,13 +129,6 @@ gboolean gnm_search_replace_cell (GnmSearchReplace *sr,
 				  gboolean repl,
 				  GnmSearchReplaceCellResult *res);
 
-typedef struct {
-	GnmCell *cell;
-} GnmSearchReplaceValueResult;
-gboolean gnm_search_replace_value (GnmSearchReplace *sr,
-				   GnmEvalPos const *ep,
-				   GnmSearchReplaceValueResult *res);
-
 void gnm_search_replace_query_fail (GnmSearchReplace *sr,
 				    const GnmSearchReplaceCellResult *res);
 
diff --git a/src/sheet-filter.c b/src/sheet-filter.c
index a8360b4..ecb9afa 100644
--- a/src/sheet-filter.c
+++ b/src/sheet-filter.c
@@ -829,7 +829,7 @@ gnm_filter_set_condition (GnmFilter *filter, unsigned i,
  *
  * Returns: %TRUE if @filter overlaps @r.
  **/
-gboolean
+static gboolean
 gnm_filter_overlaps_range (GnmFilter const *filter, GnmRange const *r)
 {
 	g_return_val_if_fail (filter != NULL, FALSE);
diff --git a/src/sheet-filter.h b/src/sheet-filter.h
index 891c1c0..29cf4aa 100644
--- a/src/sheet-filter.h
+++ b/src/sheet-filter.h
@@ -82,7 +82,6 @@ GnmFilterCondition const *gnm_filter_get_condition  (GnmFilter const *filter, un
 void			  gnm_filter_set_condition  (GnmFilter *filter, unsigned i,
 						     GnmFilterCondition *cond,
 						     gboolean apply);
-gboolean		  gnm_filter_overlaps_range (GnmFilter const *filter, GnmRange const *r);
 void                      gnm_filter_reapply        (GnmFilter *filter);
 
 GnmFilter *gnm_sheet_filter_at_pos  (Sheet const *sheet, GnmCellPos const *pos);



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