MB-7629: Small cleanup of the unnecessary code for views

Change-Id: If405da6eaf59eb122d162a43ea08837669bcef3a
Reviewed-on: http://review.couchbase.org/26914
Tested-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>