Removed dead code block and rolled-up logic

The protocol cannot be null in the removed code as it is final static in the class and has a forced value. There is no need for the removed "if" block.