summaryrefslogtreecommitdiff
path: root/switchtimer.c
diff options
context:
space:
mode:
authorFrank Neumann <fnu@yavdr.org>2017-05-07 15:57:26 +0200
committerFrank Neumann <fnu@yavdr.org>2017-05-07 15:57:26 +0200
commit8905334e795a299f332395b92faaa5560b2d4c7f (patch)
tree547ddad686a9cd3c6a5b77d8dd47448319fe3b63 /switchtimer.c
parent708819a7b5653f2d66c7fb17baba2c7a081a47a7 (diff)
downloadvdr-plugin-epgsearch-8905334e795a299f332395b92faaa5560b2d4c7f.tar.gz
vdr-plugin-epgsearch-8905334e795a299f332395b92faaa5560b2d4c7f.tar.bz2
Drop legacy code prior VDR 2.3.x
Diffstat (limited to 'switchtimer.c')
-rw-r--r--switchtimer.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/switchtimer.c b/switchtimer.c
index d145c7a..7df4352 100644
--- a/switchtimer.c
+++ b/switchtimer.c
@@ -114,13 +114,8 @@ const cEvent* cSwitchTimer::Event()
const cEvent* event = NULL;
if (startTime > now)
{
-#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)
@@ -141,12 +136,8 @@ cString cSwitchTimer::ToText(bool& ignore)
ignore = true;
return NULL;
}
-#if VDRVERSNUM > 20300
LOCK_CHANNELS_READ;
const cChannels *vdrchannels = Channels;
-#else
- cChannels *vdrchannels = &Channels;
-#endif
const cChannel *channel = vdrchannels->GetByChannelID(channelID, true, true);
if (!channel) return NULL;
cString buffer = cString::sprintf("%s:%u:%ld:%d:%d:%d",