Clean up useless codes