Removed unused code in core.rb.