diff options
author | Frank Neumann <fnu@yavdr.org> | 2017-05-07 15:57:26 +0200 |
---|---|---|
committer | Frank Neumann <fnu@yavdr.org> | 2017-05-07 15:57:26 +0200 |
commit | 8905334e795a299f332395b92faaa5560b2d4c7f (patch) | |
tree | 547ddad686a9cd3c6a5b77d8dd47448319fe3b63 /mail.c | |
parent | 708819a7b5653f2d66c7fb17baba2c7a081a47a7 (diff) | |
download | vdr-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.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -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) |