]> git.pond.sub.org Git - empserver/commitdiff
Remove edit keys deprecated in 4.3.15, 4.3.17 and 4.3.20
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 12 Apr 2011 21:07:03 +0000 (23:07 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 14 Apr 2011 18:21:23 +0000 (20:21 +0200)
These are: ship and land 'B', land 'P', and plane 'n'.

src/lib/commands/edit.c

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