SDL: Remove unused SDL_GetCPUName

From 4e6ab13d6f4825212b3ff1cbe47738617d1474f7 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 1 Feb 2023 23:17:15 +0100
Subject: [PATCH] Remove unused SDL_GetCPUName

---
 src/cpuinfo/SDL_cpuinfo.c | 134 --------------------------------------
 1 file changed, 134 deletions(-)

diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c
index 35973977b717..26ca9c94f25b 100644
--- a/src/cpuinfo/SDL_cpuinfo.c
+++ b/src/cpuinfo/SDL_cpuinfo.c
@@ -700,140 +700,6 @@ static const char *SDL_GetCPUType(void)
 }
 #endif
 
-#ifdef TEST_MAIN /* !!! FIXME: only used for test at the moment. */
-#if defined(__e2k__)
-inline const char *
-SDL_GetCPUName(void)
-{
-    static char SDL_CPUName[48];
-
-    SDL_strlcpy(SDL_CPUName, __builtin_cpu_name(), sizeof(SDL_CPUName));
-
-    return SDL_CPUName;
-}
-#else
-static const char *SDL_GetCPUName(void)
-{
-    static char SDL_CPUName[48];
-
-    if (!SDL_CPUName[0]) {
-        int i = 0;
-        int a, b, c, d;
-
-        CPU_calcCPUIDFeatures();
-        if (CPU_CPUIDMaxFunction > 0) { /* do we have CPUID at all? */
-            cpuid(0x80000000, a, b, c, d);
-            if (a >= 0x80000004) {
-                cpuid(0x80000002, a, b, c, d);
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                cpuid(0x80000003, a, b, c, d);
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                cpuid(0x80000004, a, b, c, d);
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(a & 0xff);
-                a >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(b & 0xff);
-                b >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(c & 0xff);
-                c >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-                SDL_CPUName[i++] = (char)(d & 0xff);
-                d >>= 8;
-            }
-        }
-        if (!SDL_CPUName[0]) {
-            SDL_strlcpy(SDL_CPUName, "Unknown", sizeof(SDL_CPUName));
-        }
-    }
-    return SDL_CPUName;
-}
-#endif
-#endif
-
 int SDL_GetCPUCacheLineSize(void)
 {
     const char *cpuType = SDL_GetCPUType();