Skip to content

Commit

Permalink
Merge pull request #1408 from Laboratory/master
Browse files Browse the repository at this point in the history
delete unused variables
  • Loading branch information
tj committed Nov 8, 2012
2 parents af5e38c + 534fbdb commit 79f81c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ testing
.coverage_data
cover_html
test.js
.idea
6 changes: 2 additions & 4 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ app.init = function(){
*/

app.defaultConfiguration = function(){
var self = this;

// default settings
this.enable('x-powered-by');
this.set('env', process.env.NODE_ENV || 'development');
Expand Down Expand Up @@ -103,7 +101,7 @@ app.defaultConfiguration = function(){
*/

app.use = function(route, fn){
var app, handle;
var app;

// default route to '/'
if ('string' != typeof route) fn = route, route = '/';
Expand Down Expand Up @@ -404,7 +402,7 @@ app.configure = function(env, fn){

methods.forEach(function(method){
app[method] = function(path){
if ('get' == method && 1 == arguments.length) return this.set(path);
if ('get' == method && 1 == arguments.length) return this.set(path);
var args = [method].concat([].slice.call(arguments));
if (!this._usedRouter) this.use(this.router);
this._router.route.apply(this._router, args);
Expand Down

0 comments on commit 79f81c0

Please sign in to comment.