SDL: cmake: remove unused function 'listtostrrev'

From dfcd8d583508a29a9bbf878ad53fc95afc3fc4ff Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 7 Jan 2023 19:40:23 +0100
Subject: [PATCH] cmake: remove unused function 'listtostrrev'

---
 cmake/macros.cmake | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/cmake/macros.cmake b/cmake/macros.cmake
index a3ed37c62adc..06df6c6d01d1 100644
--- a/cmake/macros.cmake
+++ b/cmake/macros.cmake
@@ -90,27 +90,6 @@ function(listtostr LIST OUTPUT)
   set(${OUTPUT} "${res}" PARENT_SCOPE)
 endfunction()
 
-function(listtostrrev _LIST _OUTPUT)
-  if(${ARGC} EQUAL 3)
-    # prefix for each element
-    set(_LPREFIX ${ARGV2})
-  else()
-    set(_LPREFIX "")
-  endif()
-  # Do not use string(REPLACE ";" " ") here to avoid messing up list
-  # entries
-  set(res)
-  foreach(_ITEM ${${_LIST}})
-    string(SUBSTRING "${_ITEM}" 0 6 start)
-    if(start STREQUAL "SHELL:")
-      string(SUBSTRING "${_ITEM}" 6 -1 _ITEM)
-    endif()
-    set(res "${res} ${_LPREFIX}${_ITEM}")
-  endforeach()
-  string(STRIP "${res}" res)
-  set($_OUTPUT} "${res}" PARENT_SCOPE)
-endfunction()
-
 function(find_stringlength_longest_item inList outLength)
   set(maxLength 0)
   foreach(item IN LISTS ${inList})