瀏覽代碼

cmake: remove unused function 'listtostrrev'

Anonymous Maarten 2 年之前
父節點
當前提交
dfcd8d5835
共有 1 個文件被更改,包括 0 次插入21 次删除
  1. 0 21
      cmake/macros.cmake

+ 0 - 21
cmake/macros.cmake

@@ -90,27 +90,6 @@ function(listtostr LIST OUTPUT)
   set(${OUTPUT} "${res}" PARENT_SCOPE)
   set(${OUTPUT} "${res}" PARENT_SCOPE)
 endfunction()
 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)
 function(find_stringlength_longest_item inList outLength)
   set(maxLength 0)
   set(maxLength 0)
   foreach(item IN LISTS ${inList})
   foreach(item IN LISTS ${inList})