remove unused variables
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Tests and examples with unused variables are unchanged.
authored by Roman Shtylman · committed by Roman Shtylman · parent 764b6c6 · Browse files · 4 files·+8 added−18 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+8 added−18 removed
- other:+8 added−18 removed
Provenance
- Commit
dadf57c- Tree
e5c07d1- Author
Roman Shtylman <shtylman@gmail.com>- Committer
Roman Shtylman <shtylman@gmail.com>- Parent
764b6c6
4 files changed+8 added−18 removed
modified:lib/router/index.js+2 added-4 removed
3 unmodified lines4 5 var Route = require('./route')6 , utils = require('../utils')7 , debug = require('debug')('express:router')8- , parse = require('connect').utils.parseUrl9- , methods = require('methods');8+ , parse = require('connect').utils.parseUrl;9 10 /**11 * Expose `Router` constructor.12 */78 unmodified lines91 , paramIndex = 092 , paramVal93 , route94 , keys96- , key97- , ret;95+ , key;96 97 // match next route98 function nextRoute(err) {99 pass(req._route_index + 1, err);157 unmodified linesmodified:lib/application.js+3 added-7 removed
7 unmodified lines8 , middleware = require('./middleware')9 , debug = require('debug')('express:application')10 , locals = require('./utils').locals11 , View = require('./view')12- , url = require('url')12 , utils = connect.utils13 , path = require('path')14 , http = require('http')16- , join = path.join17- , fs = require('fs');15+ , join = path.join;16 17 /**18 * Application prototype.19 */10 unmodified lines30 * @api private31 */32 33 app.init = function(){36- var self = this;34 this.cache = {};35 this.settings = {};36 this.engines = {};37 this.viewCallbacks = [];64 unmodified lines102 * @api public103 */104 105 app.use = function(route, fn){109- var app, home, handle;106+ var app, handle;107 108 // default route to '/'109 if ('string' != typeof route) fn = route, route = '/';110 339 unmodified lines450 * @api public451 */452 453 app.render = function(name, options, fn){457- var self = this458- , opts = {}454+ var opts = {}455 , cache = this.cache456 , engines = this.engines457 , view;458 73 unmodified linesmodified:lib/response.js+2 added-4 removed
1 /**2 * Module dependencies.3 */4 5-var fs = require('fs')6- , http = require('http')5+var http = require('http')6 , path = require('path')7 , connect = require('connect')8 , utils = connect.utils9 , normalizeType = require('./utils').normalizeType2 unmodified lines12 , statusCodes = http.STATUS_CODES13 , send = connect.static.send14 , cookie = require('cookie')15 , send = require('send')17- , crc = require('crc')16 , mime = connect.mime17 , basename = path.basename18 , extname = path.extname19 , join = path.join;692 unmodified lines712 };713 714 // render715 app.render(view, options, fn);718-};716+};modified:support/app.js+1 added-3 removed
14 unmodified lines1516171819201920212239 unmodified lines62636465686614 unmodified linesapp.set('views', __dirname + '/views');app.set('view engine', 'jade');app.locals.self = true;
var repo = require('../package.json');
app.get('/render', function(req, res){ res.render('hello');});
39 unmodified linesapp.get('/match', function(req, res){ res.send('Hello World\n');});
app.listen(8000);No newline at end of fileapp.listen(8000);