Stumbled on this while looking at bitmaps_png's build setup.
* Remove the unused code in the if(CONVERT_EOL) section, can't
  find any reference to this conditional in the rest of the repo.
  Relying on Git to handle this in the future, if there is a need.

Signed-off-by: Niki Guldbrand <niki.guldbr...@gmail.com>
---
 bitmaps_png/CMakeLists.txt | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt
index dc9b76d..9749248 100644
--- a/bitmaps_png/CMakeLists.txt
+++ b/bitmaps_png/CMakeLists.txt
@@ -717,33 +717,13 @@ if( MAINTAIN_PNGS )
 
     bitmap_dir( 48 48 "${BMAPS_BIG}" )
 
-if(CONVERT_EOL)
-    # dos2unix is required to convert EOL format (CRLF) to unix EOL format (LF)
-    set( eol2unix_FOUND FALSE )
-
-    if( NOT eol2unix_FOUND )
-        find_program( eol2unix_EXECUTABLE ${eol2unix_converter} DOC "The EOL to LF converter program." )
-
-        if( NOT eol2unix_EXECUTABLE )
-            message( FATAL_ERROR "Could not find the ${eol2unix_converter} EOL to LF converter program." )
-        else( NOT eol2unix_EXECUTABLE )
-            set( eol2unix_FOUND TRUE )
-            set( eol2unix_EXECUTABLE ${eol2unix_EXECUTABLE}
-                 CACHE FILEPATH "Path and file name of the end of line converter program." )
-            message( STATUS "The ${eol2unix_converter} EOL to LF converter program found." )
-        endif( NOT eol2unix_EXECUTABLE )
-    endif( NOT eol2unix_FOUND )
-elseif(APPLE)
-        #TODO: see if a EOL converted is needed # OSX
-endif(CONVERT_EOL)
+endif( MAINTAIN_PNGS )
 
     #message( "CPP_LIST: ${CPP_LIST}" )
 
     # a target with no output, just so changes get built
     #add_custom_target( make_cpp_files ALL DEPENDS ${CPP_LIST} )
 
-endif( MAINTAIN_PNGS )
-
 set( CPP_LIST "" )
 
 foreach( bmn ${BMAPS_SMALL} )
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to