[gnumeric] Make stuff static.



commit ca4af1614a38deda7e4535dcf3959d726504cc19
Author: Morten Welinder <terra gnome org>
Date:   Mon May 23 09:46:09 2011 -0400

    Make stuff static.

 src/format-template.c |   73 +++++++++++++++++++++++-------------------------
 src/format-template.h |    9 ------
 2 files changed, 35 insertions(+), 47 deletions(-)
---
diff --git a/src/format-template.c b/src/format-template.c
index 363fd8c..2b6a3e2 100644
--- a/src/format-template.c
+++ b/src/format-template.c
@@ -54,7 +54,7 @@ attr_eq (const xmlChar *a, const char *s)
  *
  * Return value: the new TemplateMember
  **/
-TemplateMember *
+static TemplateMember *
 format_template_member_new (void)
 {
 	TemplateMember *member;
@@ -80,7 +80,7 @@ format_template_member_new (void)
  *
  * Return value: a copy of @member
  **/
-TemplateMember *
+static TemplateMember *
 format_template_member_clone (TemplateMember *member)
 {
 	TemplateMember *clone = format_template_member_new ();
@@ -103,7 +103,7 @@ format_template_member_clone (TemplateMember *member)
  *
  * Frees an existing template member
  **/
-void
+static void
 format_template_member_free (TemplateMember *member)
 {
 	g_return_if_fail (member != NULL);
@@ -206,7 +206,7 @@ format_template_member_valid (TemplateMember const *member)
  *
  * Return value: the new GnmFormatTemplate
  **/
-GnmFormatTemplate *
+static GnmFormatTemplate *
 format_template_new (void)
 {
 	GnmFormatTemplate *ft;
@@ -261,6 +261,37 @@ format_template_free (GnmFormatTemplate *ft)
 	g_free (ft);
 }
 
+
+static void
+format_template_set_name (GnmFormatTemplate *ft, char const *name)
+{
+	g_return_if_fail (ft != NULL);
+	g_return_if_fail (name != NULL);
+
+	g_free (ft->name);
+	ft->name = g_strdup (name);
+}
+
+static void
+format_template_set_author (GnmFormatTemplate *ft, char const *author)
+{
+	g_return_if_fail (ft != NULL);
+	g_return_if_fail (author != NULL);
+
+	g_free (ft->author);
+	ft->author = g_strdup (author);
+}
+
+static void
+format_template_set_description (GnmFormatTemplate *ft, char const *description)
+{
+	g_return_if_fail (ft != NULL);
+	g_return_if_fail (description != NULL);
+
+	g_free (ft->description);
+	ft->description = g_strdup (description);
+}
+
 /**
  * format_template_clone:
  * @ft: GnmFormatTemplate
@@ -1030,37 +1061,3 @@ format_template_apply_to_sheet_regions (GnmFormatTemplate *ft, Sheet *sheet, GSL
 		format_template_calculate (ft, regions->data,
 					   cb_format_sheet_style, sheet);
 }
-
-/******************************************************************************
- * setters for GnmFormatTemplate
- */
-
-void
-format_template_set_name (GnmFormatTemplate *ft, char const *name)
-{
-	g_return_if_fail (ft != NULL);
-	g_return_if_fail (name != NULL);
-
-	g_free (ft->name);
-	ft->name = g_strdup (name);
-}
-
-void
-format_template_set_author (GnmFormatTemplate *ft, char const *author)
-{
-	g_return_if_fail (ft != NULL);
-	g_return_if_fail (author != NULL);
-
-	g_free (ft->author);
-	ft->author = g_strdup (author);
-}
-
-void
-format_template_set_description (GnmFormatTemplate *ft, char const *description)
-{
-	g_return_if_fail (ft != NULL);
-	g_return_if_fail (description != NULL);
-
-	g_free (ft->description);
-	ft->description = g_strdup (description);
-}
diff --git a/src/format-template.h b/src/format-template.h
index 74d4792..e1b2d73 100644
--- a/src/format-template.h
+++ b/src/format-template.h
@@ -125,7 +125,6 @@ typedef struct {
  */
 void               format_template_free           (GnmFormatTemplate *ft);
 GnmFormatTemplate *format_template_clone          (GnmFormatTemplate const *ft);
-GnmFormatTemplate *format_template_new            (void);
 GnmFormatTemplate *format_template_new_from_file  (char const *filename,
 						   GOCmdContext *context);
 
@@ -136,14 +135,6 @@ void                  format_template_apply_to_sheet_regions   (GnmFormatTemplat
 gboolean	      format_template_check_valid	       (GnmFormatTemplate *ft, GSList *regions,
 								GOCmdContext *cc);
 
-void                  format_template_set_name                 (GnmFormatTemplate *ft, char const *name);
-void                  format_template_set_author               (GnmFormatTemplate *ft, char const *author);
-void                  format_template_set_description          (GnmFormatTemplate *ft, char const *description);
-
-TemplateMember *format_template_member_new (void);
-TemplateMember *format_template_member_clone (TemplateMember *member);
-void format_template_member_free (TemplateMember *member);
-
 G_END_DECLS
 
 #endif /* _GNM_FORMAT_TEMPLATE_H_ */



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