Remove redundant code

1、This function is not used by anywhere.
https://github.com/strongloop/express/blob/master/lib/router/index.js#L489
2、Remove redundant code.
https://github.com/strongloop/express/blob/master/lib/application.js#L430

Please merge.
thanks