search: remove redundant code

Signed-off-by: Georgios Kokosioulis <giokokos@gmail.com>
Merge pull request #15 from giokokos/search-fix

search: remove redundant code