Clean search.c for old function ripped from dump.c