From 534fbdb3071e3faf184762d59bb1c21dd0041dbe Mon Sep 17 00:00:00 2001 From: Vitaly Date: Thu, 8 Nov 2012 17:07:08 +0400 Subject: [PATCH] delete unused variables --- .gitignore | 1 + lib/application.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a89a15ea..8bbe1c83 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ testing .coverage_data cover_html test.js +.idea diff --git a/lib/application.js b/lib/application.js index 69bfb5fc..3555c6ff 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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'); @@ -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 = '/'; @@ -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);