search: remove redundant code

Signed-off-by: Georgios Kokosioulis <giokokos@gmail.com>