]> granicus.if.org Git - nethack/commitdiff
remove unused globals: save_cm, was_waterlevel
authorPatR <rankin@nethack.org>
Tue, 12 Oct 2021 18:41:56 +0000 (11:41 -0700)
committerPatR <rankin@nethack.org>
Tue, 12 Oct 2021 18:41:56 +0000 (11:41 -0700)
From entrez.  Since restoring was removed separately it was easier
to edit the files manually than to use his diff.

include/decl.h
src/cmd.c
src/decl.c

index 87b5a4874f619ba0bca4bb32d5f89c1f9003a020..97bb2b17a296b491d67d68dd3f2cc6b58ed90ac6 100644 (file)
@@ -772,7 +772,6 @@ struct instance_globals {
     stairway *stairs;
     int smeq[MAXNROFROOMS + 1];
     int doorindex;
-    char *save_cm;
     long done_money;
     long domove_attempting;
     long domove_succeeded;
@@ -997,7 +996,6 @@ struct instance_globals {
     /* mkmaze.c */
     lev_region bughack; /* for preserving the insect legs when wallifying
                          * baalz level */
-    boolean was_waterlevel; /* ugh... this shouldn't be needed */
     struct bubble *bbubbles;
     struct bubble *ebubbles;
     struct trap *wportal;
index 0c29a41d39e008f81d38227010e23607f9fe4062..521b42b5ef690c117f2e36756bc3303ce6364ae2 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -4502,13 +4502,9 @@ parse(void)
     }
 
     g.multi = g.command_count;
-
-    if (g.multi) {
+    if (g.multi)
         g.multi--;
-        g.save_cm = g.command_line;
-    } else {
-        g.save_cm = (char *) 0;
-    }
+
     /* in 3.4.3 this was in rhack(), where it was too late to handle M-5 */
     if (g.Cmd.pcHack_compat) {
         /* This handles very old inconsistent DOS/Windows behaviour
index 1cd1042d35d4a3eb646059091dbe8e0790fee2fe..0c5c1c38925654f924dc27ea876c7f9131347eb9 100644 (file)
@@ -262,7 +262,6 @@ const struct instance_globals g_init = {
     NULL, /* stairs */
     DUMMY, /* smeq */
     0, /* doorindex */
-    NULL, /* save_cm */
     0, /* done_money */
     0L, /* domove_attempting */
     0L, /* domove_succeeded */
@@ -466,7 +465,6 @@ const struct instance_globals g_init = {
 
     /* mkmaze.c */
     { {COLNO, ROWNO, 0, 0}, {COLNO, ROWNO, 0, 0} }, /* bughack */
-    FALSE, /* was_waterlevel */
     UNDEFINED_PTR, /* bbubbles */
     UNDEFINED_PTR, /* ebubbles */
     UNDEFINED_PTR, /* wportal */