summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-10-12 13:14:38 -0400
committerChris Lumens <clumens@redhat.com>2012-10-15 10:24:45 -0400
commitbd7ef40fb30b54167097866e6f8fcaa5ffa4cc77 (patch)
tree33bdaa37580783226661e413cb8e04c1529b2ee0
parent9a8cf00722f335ca7d100cb6192c9983bdf8ed12 (diff)
downloadanaconda-bd7ef40fb30b54167097866e6f8fcaa5ffa4cc77.tar.gz
anaconda-bd7ef40fb30b54167097866e6f8fcaa5ffa4cc77.tar.xz
anaconda-bd7ef40fb30b54167097866e6f8fcaa5ffa4cc77.zip
Remove the code for removing an entire Root all at once.
First, it simply does not work right now. Secondly, it's not at all obvious in the UI how you would go about doing this. Click on the expander and then hit remove? Yes, but then the expander collapses and you still have a mountpoint displayed on the right. Which thing are you deleting then? We need a way to do this, but I don't think this code is it.
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 4eabdeee0..b47e76d31 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1715,30 +1715,6 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self._destroy_device(device)
log.info("ui: removed device %s" % device.name)
- elif page:
- # This is a complete installed system. Thus, we first need to confirm
- # with the user and then schedule actions to delete everything.
- page = self._accordion.currentPage()
- dialog = ConfirmDeleteDialog(self.data)
-
- # Find the root this page displays.
- root = None
- if len(page._members) > 0:
- root = page._members[0]._root
-
- if not root:
- return
-
- with enlightbox(self.window, dialog.window):
- dialog.refresh(None, page.pageTitle)
- rc = dialog.run()
-
- if rc == 0:
- return
-
- # Destroy all devices.
- for device in root.swaps + root.mounts.values():
- self._destroy_device(device)
# Now that devices have been removed from the installation root,
# refreshing the display will have the effect of making them disappear.