Skip to content

Loading…

delete unused variables #1408

Merged
merged 1 commit into from

2 participants

@Laboratory

No description provided.

@tj tj merged commit 79f81c0 into strongloop:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 8, 2012
  1. @Laboratory

    delete unused variables

    Laboratory committed
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +2 −4 lib/application.js
View
1 .gitignore
@@ -16,3 +16,4 @@ testing
.coverage_data
cover_html
test.js
+.idea
View
6 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);
Something went wrong with that request. Please try again.