Removes useless printlns.