core: remove dead code