1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-06-30 23:46:35 +00:00

bookmark-list: Remove legacy fallback bookmark file

The current location was added almost 12 years ago in commit ed90577118
("Use new GTK bookmarks location").
This commit is contained in:
Corey Berla 2024-01-20 07:25:23 -08:00 committed by António Fernandes
parent 1ff52d2e46
commit 08ec5c4b45

View File

@ -86,18 +86,6 @@ new_bookmark_from_uri (const char *uri,
return new_bookmark;
}
static GFile *
nautilus_bookmark_list_get_legacy_file (void)
{
g_autofree char *filename = NULL;
filename = g_build_filename (g_get_home_dir (),
".gtk-bookmarks",
NULL);
return g_file_new_for_path (filename);
}
static GFile *
nautilus_bookmark_list_get_file (void)
{
@ -558,11 +546,6 @@ load_io_thread (GTask *task,
GError *error = NULL;
file = nautilus_bookmark_list_get_file ();
if (!g_file_query_exists (file, NULL))
{
g_object_unref (file);
file = nautilus_bookmark_list_get_legacy_file ();
}
g_file_load_contents (file, NULL, &contents, NULL, NULL, &error);
g_object_unref (file);