commit 6507acd8a5473e883666f8190925a8a1e8055f31
Author: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
AuthorDate: Fri Nov 17 14:22:18 2023 +0100
Commit: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
CommitDate: Fri Nov 17 14:53:15 2023 +0100
doom, strife: remove unused `st_gamestate` globals and `st_stateenum_t` type
These are only ever set, but never read, so they can just be removed.
The type `st_stateenum_t` is then also unused and can be removed as well.
---
src/doom/st_stuff.c | 6 ------
src/doom/st_stuff.h | 9 ---------
src/strife/st_stuff.c | 7 -------
src/strife/st_stuff.h | 9 ---------
4 files changed, 31 deletions(-)
diff --git a/src/doom/st_stuff.c b/src/doom/st_stuff.c
index 0c11aaf3..255db472 100644
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -278,9 +278,6 @@ static int st_msgcounter=0;
// used when in chat
static st_chatstateenum_t st_chatstate;
-// whether in automap or first-person
-static st_stateenum_t st_gamestate;
-
// whether left-side main status bar is active
static boolean st_statusbaron;
@@ -449,13 +446,11 @@ ST_Responder (event_t* ev)
switch(ev->data1)
{
case AM_MSGENTERED:
- st_gamestate = AutomapState;
st_firsttime = true;
break;
case AM_MSGEXITED:
// fprintf(stderr, "AM exited\n");
- st_gamestate = FirstPersonState;
break;
}
}
@@ -1228,7 +1223,6 @@ void ST_initData(void)
plyr = &players[consoleplayer];
st_chatstate = StartChatState;
- st_gamestate = FirstPersonState;
st_statusbaron = true;
st_oldchat = st_chat = false;
diff --git a/src/doom/st_stuff.h b/src/doom/st_stuff.h
index b01a5aed..0187860f 100644
--- a/src/doom/st_stuff.h
+++ b/src/doom/st_stuff.h
@@ -53,15 +53,6 @@ void ST_Init (void);
-// States for status bar code.
-typedef enum
-{
- AutomapState,
- FirstPersonState
-
-} st_stateenum_t;
-
-
// States for the chat code.
typedef enum
{
diff --git a/src/strife/st_stuff.c b/src/strife/st_stuff.c
index 65ddc0ec..ae1d4cd9 100644
--- a/src/strife/st_stuff.c
+++ b/src/strife/st_stuff.c
@@ -148,9 +148,6 @@ static boolean st_firsttime;
// lump number for PLAYPAL
static int lu_palette;
-// whether in automap or first-person
-static st_stateenum_t st_gamestate;
-
// whether left-side main status bar is active
static boolean st_statusbaron;
@@ -307,12 +304,10 @@ boolean ST_Responder(event_t* ev)
switch(ev->data1)
{
case AM_MSGENTERED:
- st_gamestate = AutomapState;
st_firsttime = true;
break;
case AM_MSGEXITED:
- st_gamestate = FirstPersonState;
break;
}
@@ -1529,8 +1524,6 @@ void ST_initData(void)
st_firsttime = true;
plyr = &players[consoleplayer];
- st_gamestate = FirstPersonState;
-
st_statusbaron = true;
st_palette = -1;
diff --git a/src/strife/st_stuff.h b/src/strife/st_stuff.h
index 4bd66904..590c9be9 100644
--- a/src/strife/st_stuff.h
+++ b/src/strife/st_stuff.h
@@ -58,15 +58,6 @@ void ST_Init (void);
-// States for status bar code.
-typedef enum
-{
- AutomapState,
- FirstPersonState
-
-} st_stateenum_t;
-
-
// States for the chat code.
typedef enum
{