core: removed unused code