Tidied Protocol Coding

Removed unused codes in protocol enumerations.