remove unneeded code
[enigma2.git] / lib / python / Screens / TimerEntry.py
index c548e1532c04ead5c4cfa9c3b81753f0f73d7755..e8e3d4c00c95545572f08342a1ac0ecc431bf6aa 100644 (file)
@@ -88,10 +88,10 @@ class TimerEntry(Screen, ConfigListScreen):
                        self.timerentry_repeated = ConfigSelection(default = repeated, choices = [("daily", _("daily")), ("weekly", _("weekly")), ("weekdays", _("Mon-Fri")), ("user", _("user defined"))])
 
                        self.timerentry_startdate = ConfigDateTime(default = self.timer.begin, formatstring = _("%d.%B %Y"), increment = 86400)
-                       self.timerentry_starttime = ConfigClock(default = [int(time.strftime("%H", time.localtime(self.timer.begin))), int(time.strftime("%M", time.localtime(self.timer.begin)))])
+                       self.timerentry_starttime = ConfigClock(default = self.timer.begin)
 
                        self.timerentry_enddate = ConfigDateTime(default = self.timer.end, formatstring =  _("%d.%B %Y"), increment = 86400)
-                       self.timerentry_endtime = ConfigClock(default = [int(time.strftime("%H", time.localtime(self.timer.end))), int(time.strftime("%M", time.localtime(self.timer.end)))])
+                       self.timerentry_endtime = ConfigClock(default = self.timer.end)
 
                        self.timerentry_weekday = ConfigSelection(default = weekday_table[weekday], choices = [("mon",_("Monday")), ("tue", _("Tuesday")), ("wed",_("Wednesday")), ("thu", _("Thursday")), ("fri", _("Friday")), ("sat", _("Saturday")), ("sun", _("Sunday"))])
 
@@ -192,12 +192,6 @@ class TimerEntry(Screen, ConfigListScreen):
                        ConfigListScreen.keyLeft(self)
                        self.newConfig()
 
-       def keyRightCallback(self, configPath):
-               currentConfigPath = self["config"].getCurrent()[1].parent.getConfigPath()
-               # check if we are still on the same config entry
-               if (currentConfigPath == configPath):
-                       self.keyRight()
-
        def keyRight(self):
                if self["config"].getCurrent() is self.channelEntry:
                        self.keySelect()