Skip to content

Commit

Permalink
Remove app.router error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jul 26, 2014
1 parent 6a0df1a commit 91a084b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
});
};

/**
Expand Down
12 changes: 0 additions & 12 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 91a084b

Please sign in to comment.