diff --git a/thunar/thunar-gio-extensions.c b/thunar/thunar-gio-extensions.c index 6712ab0..db45f33 100644 --- a/thunar/thunar-gio-extensions.c +++ b/thunar/thunar-gio-extensions.c @@ -471,8 +471,6 @@ gboolean thunar_g_volume_is_removable (GVolume *volume) { gboolean can_eject = FALSE; - gboolean can_mount = FALSE; - gboolean can_unmount = FALSE; gboolean is_removable = FALSE; gboolean is_internal = FALSE; GDrive *drive; @@ -494,25 +492,19 @@ thunar_g_volume_is_removable (GVolume *volume) g_object_unref (drive); } +#ifdef HAVE_GIO_UNIX /* determine the mount for the volume (if it is mounted at all) */ mount = g_volume_get_mount (volume); if (mount != NULL) { -#ifdef HAVE_GIO_UNIX is_internal = thunar_g_mount_is_internal (mount); -#endif - - /* check if the volume can be unmounted */ - can_unmount = g_mount_can_unmount (mount); /* release the mount */ g_object_unref (mount); } +#endif - /* determine whether the device can be mounted */ - can_mount = g_volume_can_mount (volume); - - return (!is_internal) && (can_eject || can_unmount || is_removable || can_mount); + return (!is_internal) && (can_eject || is_removable); }