[blivet:master 3/3] Remove device_majors from devices_lib.py
mulhern
amulhern at redhat.com
Thu Oct 2 16:08:16 UTC 2014
Also remove the method that constructs it.
There is no sign that it was ever used after 2009, maybe it should
be left behind on this move.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devices_lib.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/blivet/devices_lib.py b/blivet/devices_lib.py
index 2f66c7f..b2913d8 100644
--- a/blivet/devices_lib.py
+++ b/blivet/devices_lib.py
@@ -28,21 +28,6 @@ from six import add_metaclass
from . import errors
from . import udev
-def get_device_majors():
- majors = {}
- for line in open("/proc/devices").readlines():
- try:
- (major, device) = line.split()
- except ValueError:
- continue
- try:
- majors[int(major)] = device
- except ValueError:
- continue
- return majors
-device_majors = get_device_majors()
-
-
def devicePathToName(devicePath):
""" Return a name based on the given path to a device node.
--
1.9.3
More information about the anaconda-patches
mailing list