remove dead code used when debugging history search