Delete blank lines, and remove duplicate lines of code