foxygit / doom Log in
commit 91d43bbd99f690ac8ec4a5a808e216107ee4a7dd
Author:     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
AuthorDate: Fri Nov 17 14:20:10 2023 +0100
Commit:     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
CommitDate: Fri Nov 17 14:20:10 2023 +0100

    doom: remove unused `st_cursoron` global

    This variable is only ever set, but never read, so it can just be removed.
---
 src/doom/st_stuff.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/doom/st_stuff.c b/src/doom/st_stuff.c
index 95e24c16..7a3127c0 100644
--- a/src/doom/st_stuff.c
+++ b/src/doom/st_stuff.c
@@ -293,9 +293,6 @@ static boolean		st_chat;
 // value of st_chat before message popped up
 static boolean		st_oldchat;

-// whether chat window has the cursor on
-static boolean		st_cursoron;
-
 // !deathmatch
 static boolean		st_notdeathmatch;

@@ -1240,7 +1237,6 @@ void ST_initData(void)

     st_statusbaron = true;
     st_oldchat = st_chat = false;
-    st_cursoron = false;

     st_faceindex = 0;
     st_palette = -1;