diff --git a/lib/application.js b/lib/application.js index b8b69c0670..c82126f4bb 100644 --- a/lib/application.js +++ b/lib/application.js @@ -83,12 +83,6 @@ app.defaultConfiguration = function(){ if (env === 'production') { this.enable('view cache'); } - - Object.defineProperty(this, 'router', { - get: function() { - throw new Error('\'app.router\' is deprecated!\nPlease see the 3.x to 4.x migration guide for details on how to update your app.'); - } - }); }; /** diff --git a/test/app.js b/test/app.js index 117f4dffeb..0e09040df4 100644 --- a/test/app.js +++ b/test/app.js @@ -55,18 +55,6 @@ describe('app.mountpath', function(){ }) }) -describe('app.router', function(){ - it('should throw with notice', function(done){ - var app = express() - - try { - app.router; - } catch(err) { - done(); - } - }) -}) - describe('app.path()', function(){ it('should return the canonical', function(){ var app = express()