Scheduler: remove _idle_schedule
authorZac Medico <zmedico@gentoo.org>
Wed, 8 Feb 2012 23:43:50 +0000 (15:43 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 8 Feb 2012 23:43:50 +0000 (15:43 -0800)
This shouldn't be needed, since _schedule() should already be called
automatically when there are any relevant state changes.

pym/_emerge/Scheduler.py

index 770cb6c6cd573a5f718f28bdb54ba97d27017c77..ee7a02ca3c48c3e557c9018a123610a05152c874 100644 (file)
@@ -196,7 +196,6 @@ class Scheduler(PollScheduler):
 
                self._status_display = JobStatusDisplay(
                        xterm_titles=('notitles' not in settings.features))
-               self.sched_iface.idle_add(self._idle_schedule)
                self.sched_iface.timeout_add(self._max_display_latency,
                        self._status_display.display)
                self._max_load = myopts.get("--load-average")
@@ -356,10 +355,6 @@ class Scheduler(PollScheduler):
                self._set_graph_config(None)
                gc.collect()
 
-       def _idle_schedule(self):
-               self._schedule()
-               return True
-
        def _set_max_jobs(self, max_jobs):
                self._max_jobs = max_jobs
                self._task_queues.jobs.max_jobs = max_jobs