Cleanup codes.

remove all no longer used codes.