RemoveUnnecessaryCode