Remove unused code

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