refactor($core): removes dead code