From 6ea279a74a84b13aa72237448c9ed848c8fdcad4 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 13 Feb 2015 23:46:21 +0100 Subject: Removed all conditional compilation based on VDRVERSNUM. The youngest VDRVERSNUM-check was for 10728. So all VDR versions less or equal 10728 are not supported any more now. --- tasks.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tasks.cpp') diff --git a/tasks.cpp b/tasks.cpp index 2a2b8d5..5f73ba6 100644 --- a/tasks.cpp +++ b/tasks.cpp @@ -19,11 +19,7 @@ using namespace std::tr1::placeholders; const char* NowReplaying() { -#if VDRVERSNUM >= 10403 return cReplayControl::NowReplaying(); -#else - return cControl::Control()?cReplayControl::LastReplayed():NULL; -#endif } StickyTask::StickyTask() @@ -60,15 +56,9 @@ void PlayRecordingTask::Action() const char *current = NowReplaying(); if (!current || (0 != strcmp(current, recording->FileName()))) { -#if VDRVERSNUM >= 10728 cReplayControl::SetRecording( 0 ); cControl::Shutdown(); cReplayControl::SetRecording( recording->FileName() ); -#else - cReplayControl::SetRecording( 0, 0 ); - cControl::Shutdown(); - cReplayControl::SetRecording( recording->FileName(), recording->Title() ); -#endif cControl::Launch( new cReplayControl ); cControl::Attach(); } @@ -128,11 +118,7 @@ void StopRecordingTask::Action() return; } -#if VDRVERSNUM >= 10728 cReplayControl::SetRecording( 0 ); -#else - cReplayControl::SetRecording( 0, 0 ); -#endif cControl::Shutdown(); } -- cgit v1.2.3