[evolution] Remove unused e_table_specification_save_to_file().



commit bf447601756decdcd144940c3d52f11e6e7919b0
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jun 25 18:47:22 2013 -0400

    Remove unused e_table_specification_save_to_file().

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-table-specification.c                     |   32 --------------------
 e-util/e-table-specification.h                     |    3 --
 3 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 6399c8c..4706934 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -3919,7 +3919,6 @@ e_table_specification_new
 e_table_specification_load_from_file
 e_table_specification_load_from_string
 e_table_specification_load_from_node
-e_table_specification_save_to_file
 e_table_specification_save_to_string
 e_table_specification_save_to_node
 e_table_specification_duplicate
diff --git a/e-util/e-table-specification.c b/e-util/e-table-specification.c
index 24716b4..8ca0fe3 100644
--- a/e-util/e-table-specification.c
+++ b/e-util/e-table-specification.c
@@ -278,38 +278,6 @@ e_table_specification_load_from_node (ETableSpecification *specification,
 }
 
 /**
- * e_table_specification_save_to_file:
- * @specification: an #ETableSpecification
- * @filename: the name of the file to save to
- *
- * Dumps the contents of @specification to @filename.
- *
- * Returns: 0 on success or -1 on error.
- */
-gint
-e_table_specification_save_to_file (ETableSpecification *specification,
-                                    const gchar *filename)
-{
-       xmlDoc *doc;
-       xmlNode *node;
-       gint ret;
-
-       g_return_val_if_fail (E_IS_TABLE_SPECIFICATION (specification), -1);
-       g_return_val_if_fail (filename != NULL, -1);
-
-       doc = xmlNewDoc ((const guchar *) "1.0");
-       if (doc == NULL)
-               return -1;
-
-       node = e_table_specification_save_to_node (specification);
-       xmlDocSetRootElement (doc, node);
-       ret = e_xml_save_file (filename, doc);
-       xmlFreeDoc (doc);
-
-       return ret;
-}
-
-/**
  * e_table_specification_save_to_string:
  * @specification: an #ETableSpecification
  *
diff --git a/e-util/e-table-specification.h b/e-util/e-table-specification.h
index 4970a7f..b1998d7 100644
--- a/e-util/e-table-specification.h
+++ b/e-util/e-table-specification.h
@@ -95,9 +95,6 @@ void          e_table_specification_load_from_node
                                                (ETableSpecification *specification,
                                                 const xmlNode *node);
 
-gint           e_table_specification_save_to_file
-                                               (ETableSpecification *specification,
-                                                const gchar *filename);
 gchar *                e_table_specification_save_to_string
                                                (ETableSpecification *specification);
 xmlNode *      e_table_specification_save_to_node


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