core: Remove unnecessary codes