[PATCH 4/6] Remove unused udev_device_is_{multipath, dmraid}_partition functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Logical 'and' of return values from udev_device_is_dm_partition and
udev_device_is_dm_{mpath,raid} achieve the same result.
---
 pyanaconda/storage/udev.py |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/pyanaconda/storage/udev.py b/pyanaconda/storage/udev.py
index 9cba719..cc9f4db 100644
--- a/pyanaconda/storage/udev.py
+++ b/pyanaconda/storage/udev.py
@@ -467,21 +467,6 @@ def udev_device_is_dm_partition(info):
     diskname = udev_device_get_dm_partition_disk(info)
     return diskname not in ("", None)
 
-def udev_device_is_dmraid_partition(info):
-    if not udev_device_is_dm_raid(info):
-        return False
-
-    diskname = udev_device_get_dm_partition_disk(info)
-    return diskname not in ("", None)
-
-def udev_device_is_multipath_partition(info):
-    """ Return True if the device is a partition of a multipath device. """
-    if not udev_device_is_dm_mpath(info):
-        return False
-
-    diskname = udev_device_get_dm_partition_disk(info)
-    return diskname not in ("", None)
-
 def udev_device_is_multipath_member(info):
     """ Return True if the device is part of a multipath. """
     return info.get("ID_FS_TYPE") == "multipath_member"
-- 
1.7.2.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux