Clean up unused codes