Remove unused code

This is used in Ember: https://github.com/emberjs/ember.js/blob/af438691aa3f72f33638f09b1f1c74493dcf2770/packages/ember-routing/lib/system/route.js#L382