Remove unnessary codes.