Remove unused code

Change-Id: I8f5dbf58adb015a1041c9f26a9770d25dad8e29a
Reviewed-on: http://review.couchbase.org/23868
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>