SDL: Remove disabled self test main functions

From 4af93990a90dc0b5d293a01b1a2869734db75981 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 1 Feb 2023 20:13:34 +0100
Subject: [PATCH] Remove disabled self test main functions

---
 src/cpuinfo/SDL_cpuinfo.c | 31 -----------------
 src/stdlib/SDL_getenv.c   | 70 ---------------------------------------
 2 files changed, 101 deletions(-)

diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c
index 4fe8e4277c40..35973977b717 100644
--- a/src/cpuinfo/SDL_cpuinfo.c
+++ b/src/cpuinfo/SDL_cpuinfo.c
@@ -1093,34 +1093,3 @@ SDL_SIMDGetAlignment(void)
     SDL_assert(SDL_SIMDAlignment != 0);
     return SDL_SIMDAlignment;
 }
-
-#ifdef TEST_MAIN
-
-#include <stdio.h>
-
-int main()
-{
-    printf("CPU count: %d\n", SDL_GetCPUCount());
-    printf("CPU type: %s\n", SDL_GetCPUType());
-    printf("CPU name: %s\n", SDL_GetCPUName());
-    printf("CacheLine size: %d\n", SDL_GetCPUCacheLineSize());
-    printf("RDTSC: %d\n", SDL_HasRDTSC());
-    printf("Altivec: %d\n", SDL_HasAltiVec());
-    printf("MMX: %d\n", SDL_HasMMX());
-    printf("SSE: %d\n", SDL_HasSSE());
-    printf("SSE2: %d\n", SDL_HasSSE2());
-    printf("SSE3: %d\n", SDL_HasSSE3());
-    printf("SSE4.1: %d\n", SDL_HasSSE41());
-    printf("SSE4.2: %d\n", SDL_HasSSE42());
-    printf("AVX: %d\n", SDL_HasAVX());
-    printf("AVX2: %d\n", SDL_HasAVX2());
-    printf("AVX-512F: %d\n", SDL_HasAVX512F());
-    printf("ARM SIMD: %d\n", SDL_HasARMSIMD());
-    printf("NEON: %d\n", SDL_HasNEON());
-    printf("LSX: %d\n", SDL_HasLSX());
-    printf("LASX: %d\n", SDL_HasLASX());
-    printf("RAM: %d MB\n", SDL_GetSystemRAM());
-    return 0;
-}
-
-#endif /* TEST_MAIN */
diff --git a/src/stdlib/SDL_getenv.c b/src/stdlib/SDL_getenv.c
index af51624b5b14..f13f17b604e2 100644
--- a/src/stdlib/SDL_getenv.c
+++ b/src/stdlib/SDL_getenv.c
@@ -228,73 +228,3 @@ SDL_getenv(const char *name)
     return value;
 }
 #endif
-
-#ifdef TEST_MAIN
-#include <stdio.h>
-
-int main(int argc, char *argv[])
-{
-    char *value;
-
-    printf("Checking for non-existent variable... ");
-    fflush(stdout);
-    if (!SDL_getenv("EXISTS")) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Setting FIRST=VALUE1 in the environment... ");
-    fflush(stdout);
-    if (SDL_setenv("FIRST", "VALUE1", 0) == 0) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Getting FIRST from the environment... ");
-    fflush(stdout);
-    value = SDL_getenv("FIRST");
-    if (value && (SDL_strcmp(value, "VALUE1") == 0)) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Setting SECOND=VALUE2 in the environment... ");
-    fflush(stdout);
-    if (SDL_setenv("SECOND", "VALUE2", 0) == 0) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Getting SECOND from the environment... ");
-    fflush(stdout);
-    value = SDL_getenv("SECOND");
-    if (value && (SDL_strcmp(value, "VALUE2") == 0)) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Setting FIRST=NOVALUE in the environment... ");
-    fflush(stdout);
-    if (SDL_setenv("FIRST", "NOVALUE", 1) == 0) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Getting FIRST from the environment... ");
-    fflush(stdout);
-    value = SDL_getenv("FIRST");
-    if (value && (SDL_strcmp(value, "NOVALUE") == 0)) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    printf("Checking for non-existent variable... ");
-    fflush(stdout);
-    if (!SDL_getenv("EXISTS")) {
-        printf("okay\n");
-    } else {
-        printf("failed\n");
-    }
-    return 0;
-}
-#endif /* TEST_MAIN */