search: Remove unused function