From d337ce9fedc74f7499536657bf82c2ee0bb57b0f Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sun, 1 Apr 2012 19:25:22 -0500 Subject: 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, 20 deletions(-) diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index bc6940194..34b2d33e7 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 d36783579..e5dd72990 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, -- cgit