Remove unused variables.

Change-Id: Ibd5f735d56984ec3575a241b6ff5a31d6c728da4
Reviewed-on: http://review.couchbase.org/40628
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>