Skip to content
This repository
Browse code

delete unused variables

  • Loading branch information...
commit 534fbdb3071e3faf184762d59bb1c21dd0041dbe 1 parent af5e38c
Vitaly authored November 08, 2012
1  .gitignore
@@ -16,3 +16,4 @@ testing
16 16
 .coverage_data
17 17
 cover_html
18 18
 test.js
  19
+.idea
6  lib/application.js
@@ -45,8 +45,6 @@ app.init = function(){
45 45
  */
46 46
 
47 47
 app.defaultConfiguration = function(){
48  
-  var self = this;
49  
-
50 48
   // default settings
51 49
   this.enable('x-powered-by');
52 50
   this.set('env', process.env.NODE_ENV || 'development');
@@ -103,7 +101,7 @@ app.defaultConfiguration = function(){
103 101
  */
104 102
 
105 103
 app.use = function(route, fn){
106  
-  var app, handle;
  104
+  var app;
107 105
 
108 106
   // default route to '/'
109 107
   if ('string' != typeof route) fn = route, route = '/';
@@ -404,7 +402,7 @@ app.configure = function(env, fn){
404 402
 
405 403
 methods.forEach(function(method){
406 404
   app[method] = function(path){
407  
-    if ('get' == method && 1 == arguments.length) return this.set(path); 
  405
+    if ('get' == method && 1 == arguments.length) return this.set(path);
408 406
     var args = [method].concat([].slice.call(arguments));
409 407
     if (!this._usedRouter) this.use(this.router);
410 408
     this._router.route.apply(this._router, args);

0 notes on commit 534fbdb

Please sign in to comment.
Something went wrong with that request. Please try again.