Remove unused function.

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