Delete some obsolete codes.