[blivet:master 07/17] Eliminate some redundant definitions of the device property.

mulhern amulhern at redhat.com
Tue Jan 6 20:38:09 UTC 2015


The device property is defined using abstractions in DeviceFormat,
so the appropriate NFS and TmpFS methods will be invoked appropriately.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fs.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 060d990..6112b4e 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1471,10 +1471,6 @@ class NFS(FS):
     def _getDevice(self):
         return self._device
 
-    device = property(lambda f: f._getDevice(),
-                      lambda f,d: f._setDevice(d),
-                      doc="Full path the device this format occupies")
-
 register_device_format(NFS)
 
 
@@ -1658,8 +1654,6 @@ class TmpFS(NoDevFS):
         # same, nothing actually needs to be set
         pass
 
-    device = property(_getDevice, _setDevice)
-
     @property
     def resizeArgs(self):
         # a live tmpfs mount can be resized by remounting it with
-- 
1.9.3



More information about the anaconda-patches mailing list