diff --git a/.gitignore b/.gitignore index a89a15eaed..8bbe1c831b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ testing .coverage_data cover_html test.js +.idea diff --git a/Readme.md b/Readme.md index b5eb45e57e..6bb8b95e2e 100644 --- a/Readme.md +++ b/Readme.md @@ -17,10 +17,6 @@ app.listen(3000); $ npm install -g express - To install the 3.0 alpha: - - $ npm install -g express@3.0 - ## Quick Start The quickest way to get started with express is to utilize the executable `express(1)` to generate an application as shown below: diff --git a/lib/application.js b/lib/application.js index 69bfb5fcbf..3555c6ffbb 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); diff --git a/lib/response.js b/lib/response.js index 0d1fa86aec..875fff157b 100644 --- a/lib/response.js +++ b/lib/response.js @@ -11,7 +11,6 @@ var http = require('http') , normalizeTypes = require('./utils').normalizeTypes , etag = require('./utils').etag , statusCodes = http.STATUS_CODES - , send = connect.static.send , cookie = require('cookie') , send = require('send') , mime = connect.mime