Eliminating dead code