mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
gtkplacesview: remove dead code
This is checked on is_removable_volume https://bugzilla.gnome.org/show_bug.cgi?id=756589
This commit is contained in:
parent
0cd4e7ec43
commit
983c61826b
@ -686,7 +686,6 @@ add_volume (GtkPlacesView *view,
|
||||
GVolume *volume)
|
||||
{
|
||||
gboolean is_network;
|
||||
GDrive *drive;
|
||||
GMount *mount;
|
||||
GFile *root;
|
||||
GIcon *icon;
|
||||
@ -697,20 +696,6 @@ add_volume (GtkPlacesView *view,
|
||||
if (is_removable_volume (volume))
|
||||
return;
|
||||
|
||||
drive = g_volume_get_drive (volume);
|
||||
|
||||
if (drive)
|
||||
{
|
||||
gboolean is_removable;
|
||||
|
||||
is_removable = g_drive_is_media_removable (drive) ||
|
||||
g_volume_can_eject (volume);
|
||||
g_object_unref (drive);
|
||||
|
||||
if (is_removable)
|
||||
return;
|
||||
}
|
||||
|
||||
identifier = g_volume_get_identifier (volume, G_VOLUME_IDENTIFIER_KIND_CLASS);
|
||||
is_network = g_strcmp0 (identifier, "network") == 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user