Skip to content
Myr

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

4 files+8 added−18 removed

modified:lib/router/index.js+2 added-4 removed
3 unmodified lines
45var 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;910/**11 * Expose `Router` constructor.12 */
78 unmodified lines
91 , paramIndex = 092 , paramVal93 , route94 , keys96 , key97 , ret;95 , key;9697 // match next route98 function nextRoute(err) {99 pass(req._route_index + 1, err);
157 unmodified lines
modified:lib/application.js+3 added-7 removed
7 unmodified lines
8 , 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;1617/**18 * Application prototype.19 */
10 unmodified lines
30 * @api private31 */3233app.init = function(){36 var self = this;34 this.cache = {};35 this.settings = {};36 this.engines = {};37 this.viewCallbacks = [];
64 unmodified lines
102 * @api public103 */104105app.use = function(route, fn){109 var app, home, handle;106 var app, handle;107108 // default route to '/'109 if ('string' != typeof route) fn = route, route = '/';110
339 unmodified lines
450 * @api public451 */452453app.render = function(name, options, fn){457 var self = this458 , opts = {}454 var opts = {}455 , cache = this.cache456 , engines = this.engines457 , view;458
73 unmodified lines
modified:lib/response.js+2 added-4 removed
1/**2 * Module dependencies.3 */45var fs = require('fs')6 , http = require('http')5var http = require('http')6 , path = require('path')7 , connect = require('connect')8 , utils = connect.utils9 , normalizeType = require('./utils').normalizeType
2 unmodified lines
12 , 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 lines
712 };713714 // render715 app.render(view, options, fn);718};716};
modified:support/app.js+1 added-3 removed