From 3f9327b8e40e0dc34c9a0202bdbee090a7e3c8a3 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sun, 14 Jul 2019 12:35:15 +0200 Subject: Simplify cRecMenuSearchTimerEdit::GetSearchTimer --- searchtimer.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'searchtimer.c') diff --git a/searchtimer.c b/searchtimer.c index 2a4651f..bfc3757 100644 --- a/searchtimer.c +++ b/searchtimer.c @@ -97,31 +97,6 @@ void cTVGuideSearchTimer::SetTemplate(std::string tmpl) { strTimer = searchTimerString.str(); } -int cTVGuideSearchTimer::DayOfWeek(void) { - int vdrDayOfWeek = 0; - if (dayOfWeek >= 0) { - vdrDayOfWeek = pow(2, (dayOfWeek+6)%7); - } else if (dayOfWeek < 0) { - int absDayOfWeek = abs(dayOfWeek); - for (int i=0; i < 7; i++) { - if (absDayOfWeek & (1 << i)) { - vdrDayOfWeek += pow(2, (i+6)%7); - } - } - } - return vdrDayOfWeek; -} - -void cTVGuideSearchTimer::SetDayOfWeek(int VDRDayOfWeek) { - int epgSearchDayOfWeek = 0; - for (int i=0; i < 7; i++) { - if (VDRDayOfWeek & (1 << i)) { - epgSearchDayOfWeek += pow(2, (i+1)%7); - } - } - this->dayOfWeek = epgSearchDayOfWeek * (-1); -} - /* 0 - unique search timer id 1 - the search term -- cgit v1.2.3