Remove edit keys deprecated in 4.3.15, 4.3.17 and 4.3.20

These are: ship and land 'B', land 'P', and plane 'n'.
This commit is contained in:
Markus Armbruster 2011-04-12 23:07:03 +02:00
parent 98cd2a3a70
commit a93c8f628f

View file

@ -438,11 +438,13 @@ getin(char *buf, char **valp)
return thing; return thing;
} }
#if 0 /* not needed right now */
static void static void
warn_deprecated(char key) warn_deprecated(char key)
{ {
pr("Key <%c> is deprecated and will go away in a future release\n", key); pr("Key <%c> is deprecated and will go away in a future release\n", key);
} }
#endif
static int static int
doland(char op, int arg, char *p, struct sctstr *sect) doland(char op, int arg, char *p, struct sctstr *sect)
@ -795,9 +797,6 @@ doship(char op, int arg, char *p, struct shpstr *ship)
case 'M': case 'M':
ship->shp_mobil = arg; ship->shp_mobil = arg;
break; break;
case 'B':
warn_deprecated(op);
break;
case 'F': case 'F':
if (p[0] == '~') if (p[0] == '~')
ship->shp_fleet = 0; ship->shp_fleet = 0;
@ -909,15 +908,9 @@ dounit(char op, int arg, char *p, struct lndstr *land)
case 'F': case 'F':
land->lnd_harden = errcheck(arg, 0, 255); land->lnd_harden = errcheck(arg, 0, 255);
break; break;
case 'B':
warn_deprecated(op);
break;
case 'S': case 'S':
land->lnd_ship = arg; land->lnd_ship = arg;
break; break;
case 'P':
warn_deprecated(op);
break;
case 'Z': case 'Z':
land->lnd_retreat = arg; land->lnd_retreat = arg;
break; break;
@ -980,9 +973,6 @@ doplane(char op, int arg, char *p, struct plnstr *plane)
coord newx, newy; coord newx, newy;
switch (op) { switch (op) {
case 'n':
warn_deprecated(op);
break;
case 'U': case 'U':
ef_set_uid(EF_PLANE, plane, arg); ef_set_uid(EF_PLANE, plane, arg);
break; break;