Cleanup some codes.

Signed-off-by: EnderAlice- <enderalice@yahoo.com>