Small cleanup of unused code in sp_search