foxygit / doom Log in
commit 548075f5e01b161df384591cb69e459f1aed4c50
Author:     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
AuthorDate: Fri Nov 17 14:55:28 2023 +0100
Commit:     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
CommitDate: Fri Nov 17 14:55:28 2023 +0100

    doom, strife: remove unused `st_chatstate` global and `st_chatstateenum_t` type

    These are only ever set, but never read, so they can just be removed.
    The type `st_chatstateenum_t` is then also unused and can be removed as well.
---
 src/doom/st_stuff.c   |  5 -----
 src/doom/st_stuff.h   | 11 -----------
 src/strife/st_stuff.h | 11 -----------
 3 files changed, 27 deletions(-)

diff --git a/src/doom/st_stuff.c b/src/doom/st_stuff.c
index 255db472..c2b3a92a 100644
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -275,9 +275,6 @@ static int		lu_palette;
 // used for making messages go away
 static int		st_msgcounter=0;

-// used when in chat
-static st_chatstateenum_t	st_chatstate;
-
 // whether left-side main status bar is active
 static boolean		st_statusbaron;

@@ -1222,8 +1219,6 @@ void ST_initData(void)
     st_firsttime = true;
     plyr = &players[consoleplayer];

-    st_chatstate = StartChatState;
-
     st_statusbaron = true;
     st_oldchat = st_chat = false;

diff --git a/src/doom/st_stuff.h b/src/doom/st_stuff.h
index 0187860f..0cf28bb6 100644
--- a/src/doom/st_stuff.h
+++ b/src/doom/st_stuff.h
@@ -53,17 +53,6 @@ void ST_Init (void);



-// States for the chat code.
-typedef enum
-{
-    StartChatState,
-    WaitDestState,
-    GetChatState
-
-} st_chatstateenum_t;
-
-
-
 extern pixel_t *st_backing_screen;
 extern cheatseq_t cheat_mus;
 extern cheatseq_t cheat_god;
diff --git a/src/strife/st_stuff.h b/src/strife/st_stuff.h
index 590c9be9..167888ed 100644
--- a/src/strife/st_stuff.h
+++ b/src/strife/st_stuff.h
@@ -58,17 +58,6 @@ void ST_Init (void);



-// States for the chat code.
-typedef enum
-{
-    StartChatState,
-    WaitDestState,
-    GetChatState
-
-} st_chatstateenum_t;
-
-
-
 extern byte *st_backing_screen;

 extern cheatseq_t cheat_mus;     // [STRIFE]: idmus -> spin