[epiphany] e-file-helpers: remove ephy_file_add_recent_item



commit d337ce9fedc74f7499536657bf82c2ee0bb57b0f
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Sun Apr 1 19:25:22 2012 -0500

    e-file-helpers: remove ephy_file_add_recent_item
    
    It's a two-line save, and there are no users of this API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673337

 lib/ephy-file-helpers.c |   18 ------------------
 lib/ephy-file-helpers.h |    2 --
 2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index bc69401..34b2d33 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -584,24 +584,6 @@ ephy_file_delete_on_exit (GFile *file)
 	/* does nothing now */
 }
 
-/**
- * ephy_file_add_recent_item:
- * @uri: an URI
- * @mime_type: the mime type corresponding to @uri
- *
- * Adds @uri to the default #GtkRecentManager, with @mime_type as its type.
- **/
-void
-ephy_file_add_recent_item (const char *uri,
-			   const char *mime_type)
-{	
-	GtkRecentManager *manager = gtk_recent_manager_get_default ();
-
-	g_return_if_fail (mime_type != NULL && uri != NULL);
-
-	gtk_recent_manager_add_item (manager, uri);
-}
-
 static void
 load_mime_from_xml (void)
 {
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h
index d367835..e5dd729 100644
--- a/lib/ephy-file-helpers.h
+++ b/lib/ephy-file-helpers.h
@@ -67,8 +67,6 @@ GSList     *       ephy_file_find                (const char  *path,
 gboolean           ephy_file_switch_temp_file    (GFile       *file_dest,
                                                   GFile       *file_temp);
 void               ephy_file_delete_on_exit      (GFile       *file);
-void               ephy_file_add_recent_item     (const char  *uri,
-                                                  const char  *mime_type);
 EphyMimePermission ephy_file_check_mime          (const char  *mime_type);
 gboolean           ephy_file_launch_desktop_file (const char  *filename,
                                                   const char  *parameter,



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