From 8905334e795a299f332395b92faaa5560b2d4c7f Mon Sep 17 00:00:00 2001 From: Frank Neumann Date: Sun, 7 May 2017 15:57:26 +0200 Subject: Drop legacy code prior VDR 2.3.x --- timerdone.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'timerdone.c') diff --git a/timerdone.c b/timerdone.c index 06d2b23..34d3b97 100644 --- a/timerdone.c +++ b/timerdone.c @@ -126,12 +126,8 @@ bool cTimerDone::Parse(const char *s) cString cTimerDone::ToText(void) const { -#if VDRVERSNUM > 20300 LOCK_CHANNELS_READ; const cChannels *vdrchannels = Channels; -#else - cChannels *vdrchannels = &Channels; -#endif const cChannel *channel = vdrchannels->GetByChannelID(channelID, true, true); string info = string(DAYDATETIME(start)) + " - " + string(channel?channel->Name():""); @@ -153,13 +149,8 @@ bool cTimerDone::Save(FILE *f) const cEvent* cTimerDone::GetEvent() const { -#if VDRVERSNUM > 20300 LOCK_SCHEDULES_READ; const cSchedules *schedules = Schedules; -#else - cSchedulesLock SchedulesLock; - const cSchedules* schedules = cSchedules::Schedules(SchedulesLock); -#endif if (!schedules) return NULL; const cSchedule *Schedule = schedules->GetSchedule(channelID); if (!Schedule) return NULL; -- cgit v1.2.3