SDL: Fixed adding duplicate fsops files to CMakeLists.txt

From ed5d2bdda5c6ed93516425ecd2c081b68302ac9d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 19 Mar 2024 16:20:55 -0700
Subject: [PATCH] Fixed adding duplicate fsops files to CMakeLists.txt

---
 CMakeLists.txt | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9b288c932b677..c235d0fa5df8f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1298,10 +1298,6 @@ if(ANDROID)
   sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
   set(HAVE_SDL_FSOPS TRUE)
 
-  set(SDL_FSOPS_POSIX 1)  # !!! FIXME: this might need something else for .apk data?
-  sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
-  set(HAVE_SDL_FSOPS TRUE)
-
   if(SDL_HAPTIC)
     set(SDL_HAPTIC_ANDROID 1)
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/haptic/android/*.c")
@@ -1468,10 +1464,6 @@ elseif(EMSCRIPTEN)
   sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
   set(HAVE_SDL_FSOPS TRUE)
 
-  set(SDL_FSOPS_POSIX 1)
-  sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
-  set(HAVE_SDL_FSOPS TRUE)
-
   if(SDL_CAMERA)
     set(SDL_CAMERA_DRIVER_EMSCRIPTEN 1)
     set(HAVE_CAMERA TRUE)
@@ -2480,10 +2472,6 @@ elseif(HAIKU)
   sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
   set(HAVE_SDL_FSOPS TRUE)
 
-  set(SDL_FSOPS_POSIX 1)
-  sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
-  set(HAVE_SDL_FSOPS TRUE)
-
   set(SDL_TIME_UNIX 1)
   sdl_glob_sources("${SDL3_SOURCE_DIR}/src/time/unix/*.c")
   set(HAVE_SDL_TIME TRUE)
@@ -2524,10 +2512,6 @@ elseif(RISCOS)
   sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
   set(HAVE_SDL_FSOPS TRUE)
 
-  set(SDL_FSOPS_POSIX 1)
-  sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/posix/SDL_sysfsops.c")
-  set(HAVE_SDL_FSOPS TRUE)
-
   set(SDL_TIME_UNIX 1)
   sdl_glob_sources("${SDL3_SOURCE_DIR}/src/time/unix/*.c")
   set(HAVE_SDL_TIME TRUE)
@@ -2571,8 +2555,6 @@ elseif(VITA)
 
   # !!! FIXME: do we need a FSops implementation for this?
 
-  # !!! FIXME: do we need a FSops implementation for this?
-
   if(SDL_JOYSTICK)
     set(SDL_JOYSTICK_VITA 1)
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/vita/*.c")
@@ -2713,8 +2695,6 @@ elseif(PSP)
 
   # !!! FIXME: do we need a FSops implementation for this?
 
-  # !!! FIXME: do we need a FSops implementation for this?
-
   if(SDL_JOYSTICK)
     set(SDL_JOYSTICK_PSP 1)
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/psp/*.c")
@@ -2784,8 +2764,6 @@ elseif(PS2)
 
   # !!! FIXME: do we need a FSops implementation for this?
 
-  # !!! FIXME: do we need a FSops implementation for this?
-
   if(SDL_JOYSTICK)
     set(SDL_JOYSTICK_PS2 1)
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/ps2/*.c")
@@ -2843,8 +2821,6 @@ elseif(N3DS)
 
   # !!! FIXME: do we need a FSops implementation for this?
 
-  # !!! FIXME: do we need a FSops implementation for this?
-
   if(SDL_JOYSTICK)
     set(SDL_JOYSTICK_N3DS 1)
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/joystick/n3ds/*.c")
@@ -2968,10 +2944,6 @@ if(NOT HAVE_SDL_FSOPS)
   set(SDL_FSOPS_DUMMY 1)
   sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/dummy/SDL_sysfsops.c")
 endif()
-if(NOT HAVE_SDL_FSOPS)
-  set(SDL_FSOPS_DUMMY 1)
-  sdl_sources("${SDL3_SOURCE_DIR}/src/filesystem/dummy/SDL_sysfsops.c")
-endif()
 if(NOT HAVE_SDL_LOCALE)
   set(SDL_LOCALE_DUMMY 1)
   sdl_glob_sources("${SDL3_SOURCE_DIR}/src/locale/dummy/*.c")