sdl2-compat: hints: Remove SDL2Compat_GetHint functions and use SDL3 functions instead

From edc51e4df26ea23f485b8baee0fa4225fe1dbf9e Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[EMAIL REDACTED]>
Date: Tue, 11 Feb 2025 20:26:44 -0600
Subject: [PATCH] hints: Remove SDL2Compat_GetHint functions and use SDL3
 functions instead

---
 src/sdl2_compat.c | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 836cbba..47c4a89 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -500,25 +500,6 @@ SDL2Compat_GetExeName(void)
     return exename;
 }
 
-static const char *
-SDL2Compat_GetHint(const char *name)
-{
-    return SDL3_getenv(name);
-}
-
-static bool
-SDL2Compat_GetHintBoolean(const char *name, bool default_value)
-{
-    const char *val = SDL2Compat_GetHint(name);
-
-    if (!val) {
-        return default_value;
-    }
-
-    return (SDL3_atoi(val) != 0);
-}
-
-
 static struct {
     const char *old_hint;
     const char *new_hint;
@@ -4847,7 +4828,7 @@ SDL_CreateRenderer(SDL_Window *window, int idx, Uint32 flags)
     renderer = SDL3_CreateRenderer(window, name);
     props = SDL3_GetRendererProperties(renderer);
     if (props) {
-        SDL3_SetBooleanProperty(props, PROP_RENDERER_BATCHING, SDL2Compat_GetHintBoolean("SDL_RENDER_BATCHING", (name == NULL)));
+        SDL3_SetBooleanProperty(props, PROP_RENDERER_BATCHING, SDL3_GetHintBoolean("SDL_RENDER_BATCHING", (name == NULL)));
     }
     if (flags & SDL2_RENDERER_PRESENTVSYNC) {
         SDL3_SetRenderVSync(renderer, 1);