From 0f4074f22d6e1bab37fa6c4e138270ec95e72a04 Mon Sep 17 00:00:00 2001
From: SteelT <steeltitanium1@gmail.com>
Date: Thu, 23 Sep 2021 13:45:42 -0400
Subject: [PATCH] Remove unused I_GetMouseGrab function

---
 src/i_system.h    | 4 ----
 src/sdl/i_video.c | 5 -----
 2 files changed, 9 deletions(-)

diff --git a/src/i_system.h b/src/i_system.h
index e046fd6201..a3790dca34 100644
--- a/src/i_system.h
+++ b/src/i_system.h
@@ -318,10 +318,6 @@ void I_RegisterSysCommands(void);
 */
 void I_GetCursorPosition(INT32 *x, INT32 *y);
 
-/** \brief Returns whether the mouse is grabbed
-*/
-boolean I_GetMouseGrab(void);
-
 /** \brief Sets whether the mouse is grabbed
 */
 void I_SetMouseGrab(boolean grab);
diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index 97e4a7214b..ed766ff23d 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -409,11 +409,6 @@ void I_UpdateMouseGrab(void)
 		SDLdoGrabMouse();
 }
 
-boolean I_GetMouseGrab(void)
-{
-	return (boolean)SDL_GetWindowGrab(window);
-}
-
 void I_SetMouseGrab(boolean grab)
 {
 	if (grab)
-- 
GitLab