From 3b5ba7abdd809aff5285598c40fafa2162c6ef6b Mon Sep 17 00:00:00 2001 From: Papoteur Date: Thu, 8 Oct 2015 07:52:27 +0200 Subject: Clean code, suppress unused mount function --- lib/isodumper.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'lib') diff --git a/lib/isodumper.py b/lib/isodumper.py index 953ff25..aa5c581 100644 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -155,26 +155,6 @@ class UDisks2(object): list.append(item) return list - def mount(self, device_node_path): - try: - d = self.device(device_node_path) - mount_options = ['rw', 'noexec', 'nosuid', - 'nodev', 'uid=%d'%os.geteuid(), 'gid=%d'%os.getegid()] - r=d.Mount( - { - 'auth.no_user_interaction':True, - 'options':','.join(mount_options) - }, - dbus_interface=self.FILESYSTEM) - return str(r) - except: - # May be already mounted, check - mp = self.node_mountpoint(str(device_node_path)) - print(mp, sys.exc_info()[0]) - if mp is None: - raise ValueError(sys.exc_info()[0]) - return mp - def unmount(self, device_node_path): d = self.device(device_node_path) d.Unmount({'force':True, 'auth.no_user_interaction':True}, -- cgit v1.2.1