cmake: remove unused function 'listtostrrev'

This commit is contained in:
Anonymous Maarten 2023-01-07 19:40:23 +01:00 committed by Anonymous Maarten
parent 77025417dd
commit dfcd8d5835

View file

@ -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})