summaryrefslogtreecommitdiff
path: root/searchtimer.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-14 12:35:15 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-14 14:22:26 +0200
commit3f9327b8e40e0dc34c9a0202bdbee090a7e3c8a3 (patch)
treed0912e21f3ccc925e59fd9ff4f6193c3f8d5799d /searchtimer.c
parentbff9d78ff3751e35434594c5849c8ba4a085d9d1 (diff)
downloadvdr-plugin-tvguide-3f9327b8e40e0dc34c9a0202bdbee090a7e3c8a3.tar.gz
vdr-plugin-tvguide-3f9327b8e40e0dc34c9a0202bdbee090a7e3c8a3.tar.bz2
Simplify cRecMenuSearchTimerEdit::GetSearchTimer
Diffstat (limited to 'searchtimer.c')
-rw-r--r--searchtimer.c25
1 files changed, 0 insertions, 25 deletions
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