From: Markus Armbruster Date: Fri, 21 Oct 2005 17:55:34 +0000 (+0000) Subject: Don't use conditional compilation to time out obsolete stuff. Do it X-Git-Tag: v4.2.23~30 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=cf426896aff28a1a5ac5a52e3c15d22a47d3383a Don't use conditional compilation to time out obsolete stuff. Do it by hand. --- diff --git a/src/lib/commands/peek.c b/src/lib/commands/peek.c index efaf74bc2..de51e02d9 100644 --- a/src/lib/commands/peek.c +++ b/src/lib/commands/peek.c @@ -49,14 +49,13 @@ peek(void) int nsect; struct nstr_sect nstr; -#if EMP_VERS_MINOR == 2 && EMP_VERS_PATCH <= 22 /* * OBSOLETE * Can be removed once hidden command is removed from empmod.c */ if (player->argp[0][0] == 'h') pr("The hidden command has been renamed to peek, use peek in the future\n"); -#endif + if (!snxtsct(&nstr, player->argp[1])) return RET_SYN; prdate(); diff --git a/src/lib/player/empmod.c b/src/lib/player/empmod.c index 019160f48..ac1de40f3 100644 --- a/src/lib/player/empmod.c +++ b/src/lib/player/empmod.c @@ -120,13 +120,11 @@ struct cmndstr player_coms[] = { {"harden ", 2, hard, C_MOD, NORM + MONEY + CAP}, {"help ", 0, info, 0, VIS}, {"headlines [days]", 0, head, C_MOD, VIS}, -#if EMP_VERS_MINOR == 2 && EMP_VERS_PATCH <= 22 /* * OBSOLETE * once hidden command is removed, also remove the hidden code in peek.c */ {"hidden ", 0, peek, 0, GOD}, -#endif {"improve ", 1, improve, C_MOD, NORM + MONEY + CAP}, {"info ", 0, info, 0, VIS},