aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-04-02 08:25:22 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-04-07 01:18:24 +0800
commitd337ce9fedc74f7499536657bf82c2ee0bb57b0f (patch)
treeb5db00dc4c06aa1ca98bb522a122e661a1e96bf0
parent0f66b831e586467ae2aec78ca6658f6de971b930 (diff)
downloadgsoc2013-epiphany-d337ce9fedc74f7499536657bf82c2ee0bb57b0f.tar.gz
gsoc2013-epiphany-d337ce9fedc74f7499536657bf82c2ee0bb57b0f.tar.zst
gsoc2013-epiphany-d337ce9fedc74f7499536657bf82c2ee0bb57b0f.zip
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
-rw-r--r--lib/ephy-file-helpers.c18
-rw-r--r--lib/ephy-file-helpers.h2
2 files changed, 0 insertions, 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,