From bf447601756decdcd144940c3d52f11e6e7919b0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 25 Jun 2013 18:47:22 -0400 Subject: Remove unused e_table_specification_save_to_file(). --- e-util/e-table-specification.c | 32 -------------------------------- e-util/e-table-specification.h | 3 --- 2 files changed, 35 deletions(-) (limited to 'e-util') diff --git a/e-util/e-table-specification.c b/e-util/e-table-specification.c index 24716b4977..8ca0fe37d8 100644 --- a/e-util/e-table-specification.c +++ b/e-util/e-table-specification.c @@ -277,38 +277,6 @@ e_table_specification_load_from_node (ETableSpecification *specification, g_list_free (list); } -/** - * 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 4970a7f6b2..b1998d7083 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 -- cgit