summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-05-28 15:10:08 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-05-28 15:10:08 +0200
commit9847c7571dc8f76301dcff7a6eff8075f2179b09 (patch)
treef4b1284beee812f96e5b11e51c253003877a977a /menu.c
parent43551831500e249b2dcb8557910ad234f46564cc (diff)
downloadvdr-9847c7571dc8f76301dcff7a6eff8075f2179b09.tar.gz
vdr-9847c7571dc8f76301dcff7a6eff8075f2179b09.tar.bz2
Removed all the compatibility '#if APIVERSNUM...' stuff and instead increased the API version number
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/menu.c b/menu.c
index 759cfe0d..eea024c9 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.438 2006/05/28 10:47:40 kls Exp $
+ * $Id: menu.c 1.439 2006/05/28 15:05:42 kls Exp $
*/
#include "menu.h"
@@ -512,20 +512,8 @@ eOSState cMenuChannels::Delete(void)
if (Interface->Confirm(tr("Delete channel?"))) {
if (CurrentChannel && channel == CurrentChannel) {
int n = Channels.GetNextNormal(CurrentChannel->Index());
-#if APIVERSNUM == 10400
- if (n < 0) {
- int Idx = CurrentChannel->Index();
- cChannel *channel = Channels.Get(--Idx);
- while (channel && channel->GroupSep())
- channel = Channels.Get(--Idx);
- if (channel)
- n = Idx;
- }
-#else
-#warning ******* API version changed - remove old stuff
if (n < 0)
n = Channels.GetPrevNormal(CurrentChannel->Index());
-#endif
CurrentChannel = Channels.Get(n);
CurrentChannelNr = 0; // triggers channel switch below
}
@@ -536,11 +524,8 @@ eOSState cMenuChannels::Delete(void)
if (CurrentChannel && CurrentChannel->Number() != CurrentChannelNr) {
if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring())
Channels.SwitchTo(CurrentChannel->Number());
-#if APIVERSNUM != 10400
-#warning ******* API version changed - activate new code
else
cDevice::SetCurrentChannel(CurrentChannel);
-#endif
}
}
}
@@ -563,11 +548,8 @@ void cMenuChannels::Move(int From, int To)
if (CurrentChannel && CurrentChannel->Number() != CurrentChannelNr) {
if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring())
Channels.SwitchTo(CurrentChannel->Number());
-#if APIVERSNUM != 10400
-#warning ******* API version changed - activate new code
else
cDevice::SetCurrentChannel(CurrentChannel);
-#endif
}
}
}