remove the unused codes