From eec6b1d818a4a568ca6def00565beed8c301ecab Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 2 Jun 2012 13:22:53 +0200 Subject: Finally removed the code marked with __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS and LEGACY_CRECEIVER --- HISTORY | 2 ++ receiver.c | 16 +--------------- receiver.h | 7 +------ recording.h | 10 +--------- 4 files changed, 5 insertions(+), 30 deletions(-) diff --git a/HISTORY b/HISTORY index 79bb498d..d9cb9233 100644 --- a/HISTORY +++ b/HISTORY @@ -7135,3 +7135,5 @@ Video Disk Recorder Revision History "LCARS" is the new default skin of VDR. It requires at least a 4bpp (16 color) full screen OSD, but you can still operate it if your OSD can handle only fewer colors (in which case you may want to switch to the "ST:TNG" or "Classic VDR" skin). +- Finally removed the code marked with __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS + and LEGACY_CRECEIVER. diff --git a/receiver.c b/receiver.c index f545c197..bde60e46 100644 --- a/receiver.c +++ b/receiver.c @@ -4,27 +4,13 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: receiver.c 2.6 2012/03/31 10:15:26 kls Exp $ + * $Id: receiver.c 2.7 2012/06/02 13:20:38 kls Exp $ */ #include "receiver.h" #include #include "tools.h" -#ifdef LEGACY_CRECEIVER -cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pids1, const int *Pids2, const int *Pids3) -{ - device = NULL; - channelID = ChannelID; - priority = constrain(Priority, MINPRIORITY, MAXPRIORITY); - numPids = 0; - AddPid(Pid); - AddPids(Pids1); - AddPids(Pids2); - AddPids(Pids3); -} -#endif - cReceiver::cReceiver(const cChannel *Channel, int Priority) { device = NULL; diff --git a/receiver.h b/receiver.h index 531524aa..eb2f32a7 100644 --- a/receiver.h +++ b/receiver.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: receiver.h 2.7 2012/03/31 10:18:29 kls Exp $ + * $Id: receiver.h 2.8 2012/06/02 13:20:44 kls Exp $ */ #ifndef __RECEIVER_H @@ -14,8 +14,6 @@ #define MAXRECEIVEPIDS 64 // the maximum number of PIDs per receiver -//#define LEGACY_CRECEIVER // Code enclosed with this macro is deprecated and may be removed in a future version - class cReceiver { friend class cDevice; private: @@ -40,9 +38,6 @@ protected: ///< will be delivered only ONCE, so the cReceiver must make sure that ///< it will be able to buffer the data if necessary. public: -#ifdef LEGACY_CRECEIVER - cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pids1 = NULL, const int *Pids2 = NULL, const int *Pids3 = NULL); -#endif cReceiver(const cChannel *Channel = NULL, int Priority = MINPRIORITY); ///< Creates a new receiver for the given Channel with the given Priority. ///< If Channel is not NULL, its pids are set by a call to SetPids(). diff --git a/recording.h b/recording.h index 5f94ee23..5d7c2847 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 2.30 2012/03/13 12:41:05 kls Exp $ + * $Id: recording.h 2.31 2012/06/02 13:22:53 kls Exp $ */ #ifndef __RECORDING_H @@ -22,8 +22,6 @@ #define TIMERMACRO_TITLE "TITLE" #define TIMERMACRO_EPISODE "EPISODE" -//#define __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS // Code enclosed with this macro is deprecated and may be removed in a future version - extern bool VfatFileSystem; extern int InstanceId; @@ -100,9 +98,6 @@ private: static char *StripEpisodeName(char *s); char *SortName(void) const; int GetResume(void) const; -#ifdef __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS -public: -#endif time_t start; int priority; int lifetime; @@ -208,9 +203,6 @@ class cMark : public cListObject { friend class cMarks; // for sorting private: double framesPerSecond; -#ifdef __RECORDING_H_DEPRECATED_DIRECT_MEMBER_ACCESS -public: -#endif int position; cString comment; public: -- cgit v1.2.3