diff options
author | Chris Lumens <clumens@redhat.com> | 2012-07-16 15:38:19 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-07-16 15:38:19 -0400 |
commit | 5ff750be4db77d10446f358e1bb75c343a4431bc (patch) | |
tree | b12d362e429e7c9ce83070b95ad3117bb8054d22 /pyanaconda | |
parent | f025ffc348e3f777e02c7db729efac432c89f572 (diff) | |
download | anaconda-5ff750be4db77d10446f358e1bb75c343a4431bc.tar.gz anaconda-5ff750be4db77d10446f358e1bb75c343a4431bc.tar.xz anaconda-5ff750be4db77d10446f358e1bb75c343a4431bc.zip |
Remove the Spoke check method.
The only places where we might want to run a check method are already being
handled by other means, and I never figured out how to handle killing a
check thread in the generic case anyway. This is clearly code we can live
without.
Diffstat (limited to 'pyanaconda')
-rw-r--r-- | pyanaconda/ui/gui/spokes/__init__.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pyanaconda/ui/gui/spokes/__init__.py b/pyanaconda/ui/gui/spokes/__init__.py index dfa74d89a..1fa3aa211 100644 --- a/pyanaconda/ui/gui/spokes/__init__.py +++ b/pyanaconda/ui/gui/spokes/__init__.py @@ -202,18 +202,6 @@ class NormalSpoke(Spoke): Spoke.__init__(self, data, storage, payload, instclass) self.selector = None - def check(self): - """This method runs any special checks the spoke requires. It will - be run in a separate thread and is triggered by the Back button - being clicked. Only one check thread per spoke may run at a time. - Should the check thread not finish before the user clicks Continue - on the hub, the hub will display a dialog while it finishes. - - This method should first clean up from any previous runs, even - those terminated prematurely. - """ - pass - @property def indirect(self): """If this property returns True, then this spoke is considered indirect. @@ -246,23 +234,10 @@ class NormalSpoke(Spoke): def on_back_clicked(self, window): from gi.repository import Gtk - from pyanaconda.threads import threadMgr, AnacondaThread self.window.hide() Gtk.main_quit() - # A spoke may only have one check thread running at a time. If one's - # already running, we must ask it to kill itself (there's no API in - # Python for killing a thread) and then wait for it to exit. - threadName = "Ana" + self.title.replace(" ", "") + "Check" - thr = threadMgr.get(threadName) - if thr: - thr.kill = True - thr.join() - - # And now start a new instance of the check thread. - threadMgr.add(AnacondaThread(name=threadName, target=self.check)) - class PersonalizationSpoke(Spoke): """A PersonalizationSpoke is a Spoke subclass that is displayed when the user selects something on the Hub during package installation. |