[PATCH 2/3] Remove unused fsFromConfig method

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

 



Remove unused fsFromConfig method, it is not used and has syntax errors in it.
---
 storage/formats/fs.py |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index dc642d3..ec83586 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -57,23 +57,6 @@ def get_kernel_filesystems():
 global kernel_filesystems
 kernel_filesystems = get_kernel_filesystems()
 
-def fsFromConfig(attrs, *args, **kwargs):
-    """ Create an FS instance based on a set of attributes, passing on
-        constructor arguments.
-    """
-    # XXX NOTUSED
-    if not attrs.has_key("type"):
-        raise ValueError, _("attr dict must include a type")
-
-    fs = FS(*args, **kwargs)
-    for (attr, value) in attrs.items():
-        setattr(fs, "_%s" % attr, value)
-
-    if attrs["type"] in nodev_filesystems:
-        setattr(fs, "_nodev", True)
-
-    return fs
-
 def fsConfigFromFile(config_file):
     """ Generate a set of attribute name/value pairs with which a
         filesystem type can be defined.
-- 
1.6.4

_______________________________________________
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