Browse Source

lib: remove unused variables

Signed-off-by: Fedor Indutny <fedor@indutny.com>
archived-io.js-v0.10
Brian White 11 years ago
committed by Fedor Indutny
parent
commit
03e9f84933
  1. 1
      lib/_http_client.js
  2. 4
      lib/_stream_transform.js
  3. 10
      lib/_tls_legacy.js
  4. 1
      lib/child_process.js
  5. 5
      lib/domain.js
  6. 4
      lib/fs.js
  7. 8
      lib/http.js
  8. 24
      lib/net.js
  9. 2
      lib/repl.js
  10. 3
      lib/tracing.js
  11. 1
      lib/zlib.js

1
lib/_http_client.js

@ -33,7 +33,6 @@ var parsers = common.parsers;
var freeParser = common.freeParser;
var debug = common.debug;
var IncomingMessage = require('_http_incoming').IncomingMessage;
var OutgoingMessage = require('_http_outgoing').OutgoingMessage;
var Agent = require('_http_agent');

4
lib/_stream_transform.js

@ -69,7 +69,7 @@ var util = require('util');
util.inherits(Transform, Duplex);
function TransformState(options, stream) {
function TransformState(stream) {
this.afterTransform = function(er, data) {
return afterTransform(stream, er, data);
};
@ -112,7 +112,7 @@ function Transform(options) {
Duplex.call(this, options);
this._transformState = new TransformState(options, this);
this._transformState = new TransformState(this);
// when the writable side finishes, then flush out anything remaining.
var stream = this;

10
lib/_tls_legacy.js

@ -20,7 +20,6 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var assert = require('assert');
var crypto = require('crypto');
var events = require('events');
var stream = require('stream');
var tls = require('tls');
@ -664,15 +663,6 @@ function onnewsession(key, session) {
}
function onnewsessiondone() {
if (!this.server) return;
// Cycle through data
this.cleartext.read(0);
this.encrypted.read(0);
}
function onocspresponse(resp) {
this.emit('OCSPResponse', resp);
}

1
lib/child_process.js

@ -1251,7 +1251,6 @@ function spawnSync(/*file, args, options*/) {
var opts = normalizeSpawnArguments.apply(null, arguments);
var options = opts.options;
var envPairs = opts.envPairs;
var i;

5
lib/domain.js

@ -215,7 +215,6 @@ function intercepted(_this, self, cb, fnargs) {
return;
}
var len = fnargs.length;
var args = [];
var i, ret;
@ -248,9 +247,7 @@ function bound(_this, self, cb, fnargs) {
if (self._disposed)
return;
var len = fnargs.length;
var args = [];
var i, ret;
var ret;
self.enter();
if (fnargs.length > 0)

4
lib/fs.js

@ -42,13 +42,9 @@ var kMaxLength = require('smalloc').kMaxLength;
var O_APPEND = constants.O_APPEND || 0;
var O_CREAT = constants.O_CREAT || 0;
var O_DIRECTORY = constants.O_DIRECTORY || 0;
var O_EXCL = constants.O_EXCL || 0;
var O_NOCTTY = constants.O_NOCTTY || 0;
var O_NOFOLLOW = constants.O_NOFOLLOW || 0;
var O_RDONLY = constants.O_RDONLY || 0;
var O_RDWR = constants.O_RDWR || 0;
var O_SYMLINK = constants.O_SYMLINK || 0;
var O_SYNC = constants.O_SYNC || 0;
var O_TRUNC = constants.O_TRUNC || 0;
var O_WRONLY = constants.O_WRONLY || 0;

8
lib/http.js

@ -23,8 +23,7 @@ var util = require('util');
var EventEmitter = require('events').EventEmitter;
var incoming = require('_http_incoming');
var IncomingMessage = exports.IncomingMessage = incoming.IncomingMessage;
exports.IncomingMessage = require('_http_incoming').IncomingMessage;
var common = require('_http_common');
@ -32,8 +31,7 @@ exports.METHODS = util._extend([], common.methods).sort();
exports.parsers = common.parsers;
var outgoing = require('_http_outgoing');
var OutgoingMessage = exports.OutgoingMessage = outgoing.OutgoingMessage;
exports.OutgoingMessage = require('_http_outgoing').OutgoingMessage;
var server = require('_http_server');
@ -43,7 +41,7 @@ exports.STATUS_CODES = server.STATUS_CODES;
var agent = require('_http_agent');
var Agent = exports.Agent = agent.Agent;
var globalAgent = exports.globalAgent = agent.globalAgent;
exports.globalAgent = agent.globalAgent;
var client = require('_http_client');
var ClientRequest = exports.ClientRequest = client.ClientRequest;

24
lib/net.js

@ -679,30 +679,6 @@ Socket.prototype._write = function(data, encoding, cb) {
this._writeGeneric(false, data, encoding, cb);
};
// Important: this should have the same values as in src/stream_wrap.h
function getEncodingId(encoding) {
switch (encoding) {
case 'buffer':
return 0;
case 'utf8':
case 'utf-8':
return 1;
case 'ascii':
return 2;
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return 3;
default:
return 0;
}
}
function createWriteReq(req, handle, data, encoding) {
switch (encoding) {
case 'buffer':

2
lib/repl.js

@ -556,7 +556,7 @@ REPLServer.prototype.complete = function(line, callback) {
}
// Resolve expr and get its completions.
var obj, memberGroups = [];
var memberGroups = [];
if (!expr) {
// If context is instance of vm.ScriptContext
// Get global vars synchronously

3
lib/tracing.js

@ -97,7 +97,6 @@ var inErrorTick = false;
// Needs to be the same as src/env.h
var kHasListener = 0;
var kWatchedProviders = 1;
// Flags to determine what async listeners are available.
var HAS_CREATE_AL = 1 << 0;
@ -143,7 +142,7 @@ function unloadContext() {
function runAsyncQueue(context) {
var queue = new Array();
var data = new Array();
var ccQueue, i, item, queueItem, value;
var ccQueue, i, queueItem, value;
context._asyncQueue = queue;
context._asyncData = data;

1
lib/zlib.js

@ -491,7 +491,6 @@ Zlib.prototype._transform = function(chunk, encoding, cb) {
}
}
var self = this;
this._processChunk(chunk, flushFlag, cb);
};

Loading…
Cancel
Save