From 40abde85c0fbd8c10fdc7f8894c128cb8acf05ee Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 2 Feb 2007 15:28:52 +0000 Subject: move getNextRecordingTime to correct place, no more crash when try to change a running sleeptimer --- timer.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'timer.py') diff --git a/timer.py b/timer.py index 5c664bbe..35116948 100644 --- a/timer.py +++ b/timer.py @@ -134,17 +134,6 @@ class Timer: for f in self.on_state_change: f(entry) - def getNextRecordingTime(self): - llen = len(self.timer_list) - idx = 0 - while idx < llen: - timer = self.timer_list[idx] - if timer.justplay: - idx += 1 - else: - return timer.begin - return -1 - def cleanup(self): self.processed_timers = [entry for entry in self.processed_timers if entry.disabled] -- cgit v1.2.3