From c8f6428d12e9bc9a47fb9165b5fe04c130c5d137 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 30 Dec 2024 15:46:58 +0100 Subject: [PATCH] tr2/shell: remove unused functions --- src/tr2/game/shell/common.c | 37 ------------------------------------- src/tr2/game/shell/common.h | 4 ---- 2 files changed, 41 deletions(-) diff --git a/src/tr2/game/shell/common.c b/src/tr2/game/shell/common.c index ad425afb0..e39d3b8b0 100644 --- a/src/tr2/game/shell/common.c +++ b/src/tr2/game/shell/common.c @@ -475,43 +475,6 @@ bool Shell_IsFullscreen(void) return (flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != 0; } -void Shell_GoFullscreen(void) -{ - g_Config.window.is_fullscreen = true; - g_Config.window.is_maximized = false; - M_SyncToWindow(); - M_RefreshRendererViewport(); - if (g_Config.loaded) { - Config_Write(); - } -} - -void Shell_GoMaximized(void) -{ - g_Config.window.is_fullscreen = false; - g_Config.window.is_maximized = true; - M_SyncToWindow(); - M_RefreshRendererViewport(); - if (g_Config.loaded) { - Config_Write(); - } -} - -void Shell_GoWindowed(int32_t x, int32_t y, int32_t width, int32_t height) -{ - g_Config.window.is_fullscreen = false; - g_Config.window.is_maximized = false; - g_Config.window.x = x; - g_Config.window.y = y; - g_Config.window.width = width; - g_Config.window.height = height; - M_SyncToWindow(); - M_RefreshRendererViewport(); - if (g_Config.loaded) { - Config_Write(); - } -} - // TODO: try to call this function in a single place after introducing phases. void Shell_ProcessEvents(void) { diff --git a/src/tr2/game/shell/common.h b/src/tr2/game/shell/common.h index b2baf8f8b..8463ee505 100644 --- a/src/tr2/game/shell/common.h +++ b/src/tr2/game/shell/common.h @@ -11,7 +11,3 @@ const char *Shell_GetGameflowPath(void); void Shell_ProcessEvents(void); bool Shell_IsFullscreen(void); - -void Shell_GoFullscreen(void); -void Shell_GoMaximized(void); -void Shell_GoWindowed(int32_t x, int32_t y, int32_t width, int32_t height);