summaryrefslogtreecommitdiff
path: root/mail.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 /mail.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 'mail.c')
-rw-r--r--mail.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/mail.c b/mail.c
index 369cbfa..37308f7 100644
--- a/mail.c
+++ b/mail.c
@@ -50,12 +50,8 @@ string cMailTimerNotification::Format(const string& templ) const
if (!pEvent) return "";
eTimerMatch TimerMatch = tmNone;
-#if VDRVERSNUM > 20300
LOCK_TIMERS_READ;
const cTimers *vdrtimers = Timers;
-#else
- cTimers *vdrtimers = &Timers;
-#endif
const cTimer* pTimer = vdrtimers->GetMatch(pEvent, &TimerMatch);
if (!pTimer) return "";
@@ -76,13 +72,8 @@ string cMailTimerNotification::Format(const string& templ) const
const cEvent* cMailTimerNotification::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;
@@ -91,12 +82,8 @@ const cEvent* cMailTimerNotification::GetEvent() const
bool cMailTimerNotification::operator< (const cMailTimerNotification &N) const
{
-#if VDRVERSNUM > 20300
LOCK_CHANNELS_READ;
const cChannels *vdrchannels = Channels;
-#else
- cChannels *vdrchannels = &Channels;
-#endif
const cChannel* channel = vdrchannels->GetByChannelID(channelID,true,true);
const cChannel* channelOther = vdrchannels->GetByChannelID(N.channelID,true,true);
if (!channel || !channelOther)
@@ -138,12 +125,8 @@ cMailDelTimerNotification::cMailDelTimerNotification(const string& Formatted, tC
bool cMailDelTimerNotification::operator< (const cMailDelTimerNotification &N) const
{
-#if VDRVERSNUM > 20300
LOCK_CHANNELS_READ;
const cChannels *vdrchannels = Channels;
-#else
- cChannels *vdrchannels = &Channels;
-#endif
const cChannel* channel = vdrchannels->GetByChannelID(channelID,true,true);
const cChannel* channelOther = vdrchannels->GetByChannelID(N.channelID,true,true);
if (!channel || !channelOther)