Remove duplicate function to get protocol text

Change-Id: I35f3b2b894cce1742b3bbd82ea13277ec8dd98b6
Reviewed-on: http://review.couchbase.org/25843
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>