diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-01-23 10:23:51 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:28:16 -1000 |
commit | cdcf5de9d1de0953956002f4e384a9b76ace9c9d (patch) | |
tree | 3866277dcdb9be36b619261a2fbb7801df53ae70 | |
parent | fee986a8844b6ad4f7d6a7ce8faa5c44d2b16487 (diff) | |
download | anaconda-cdcf5de9d1de0953956002f4e384a9b76ace9c9d.tar.gz anaconda-cdcf5de9d1de0953956002f4e384a9b76ace9c9d.tar.xz anaconda-cdcf5de9d1de0953956002f4e384a9b76ace9c9d.zip |
Remove unused code in partedUtils.py
While going through partedUtils.py to see what can be pulled in
to the new pyparted, I found some things were no longer used by
anything in anaconda. This patch removes that code.
-rw-r--r-- | partedUtils.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/partedUtils.py b/partedUtils.py index 2fc553cf9..abc5795af 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -1,7 +1,7 @@ # # partedUtils.py: helper functions for use with parted objects # -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc. +# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Red Hat, Inc. # All rights reserved. # # This program is free software; you can redistribute it and/or modify @@ -48,15 +48,6 @@ log = logging.getLogger("anaconda") import gettext _ = lambda x: gettext.ldgettext("anaconda", x) -fsTypes = {} - -fs_type = parted.file_system_type_get_next () -while fs_type: - fsTypes[fs_type.name] = fs_type - fs_type = parted.file_system_type_get_next (fs_type) - - - def get_flags (part): """Retrieve a list of strings representing the flags on the partition.""" string="" @@ -249,11 +240,6 @@ def filter_partitions(disk, func): return rc -def get_all_partitions(disk): - """Return a list of all PedPartition objects on disk.""" - func = lambda part: part.is_active() - return filter_partitions(disk, func) - def get_logical_partitions(disk): """Return a list of logical PedPartition objects on disk.""" func = lambda part: (part.is_active() @@ -1373,9 +1359,6 @@ class DiskSet: return drives -# XXX is this all of the possibilities? -dosPartitionTypes = [ 1, 6, 7, 11, 12, 14, 15 ] - # master list of partition types allPartitionTypesDict = { 0 : "Empty", |