removing dead code