Removes useless lines of codes