remove trailing whitespace from all lines
remove unused code