Remove unused function in search.go