removed dead code in core.js