Remove unused variables

Change-Id: I3b4f209c709cf963625144312316b3ee627410f0
Reviewed-on: http://review.couchbase.org/43442
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>