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.
Merge pull request #45 from mondain/patch-3

Removed dead code block and rolled-up logic