Removed old unused search view code

A while ago we rewrote how the search view was rendered but this code was left in.