Remove unused code

Change-Id: Ia0503fc54c48ad2621ebb23b989e758b9e40c5ff
Reviewed-on: http://review.couchbase.org/28941
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>