From 1a11b4967ac3f0d22f0eab4e6bd72bbbed42720a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 23 Jul 2018 16:58:30 -0700 Subject: [PATCH] udiskie: Remove the unused ejectable property It is also being set incorrectly. It is not very useful because we should still unmount filesystems even if the device is not ejectable. Reviewed-by: James Valleroy --- plinth/modules/udiskie/udisks2.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plinth/modules/udiskie/udisks2.py b/plinth/modules/udiskie/udisks2.py index 32da61ebe..4c30c188a 100644 --- a/plinth/modules/udiskie/udisks2.py +++ b/plinth/modules/udiskie/udisks2.py @@ -52,12 +52,6 @@ def list_devices(): 'filesystem_type': block.props.id_type } - try: - drive = client.get_drive_for_block(block) - device['ejectable'] = drive.props.id_type - except Exception: - pass - try: device['mount_points'] = obj.get_filesystem().props.mount_points except Exception: