diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-09-01 19:31:19 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-09-01 19:41:54 +0200 |
commit | 6e4121b54ec058297d7baa448aed8115f0785860 (patch) | |
tree | 6c53d35efa23222c21b870bac0db85ecd15b2af2 /storage | |
parent | c1428e3c22c4a8671a477d9594b3c5fb7f1f6e3f (diff) | |
download | anaconda-6e4121b54ec058297d7baa448aed8115f0785860.tar.gz anaconda-6e4121b54ec058297d7baa448aed8115f0785860.tar.xz anaconda-6e4121b54ec058297d7baa448aed8115f0785860.zip |
Remove unused fsFromConfig method
Remove unused fsFromConfig method, it is not used and has syntax errors in it.
Diffstat (limited to 'storage')
-rw-r--r-- | 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 dc642d38c..ec8358688 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. |