mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-04 19:08:23 +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:
parent
1ff52d2e46
commit
08ec5c4b45
1 changed files with 0 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue