Merge pull request #561 from tgriesser/unused-vars
Remove unused variables
This commit is contained in:
commit
492f1eb709
@ -1,6 +1,5 @@
|
||||
var url = require('url');
|
||||
var dns = require('dns');
|
||||
var path = require('path');
|
||||
|
||||
var defaults = require(__dirname + '/defaults');
|
||||
|
||||
|
@ -1,9 +1,7 @@
|
||||
var net = require('net');
|
||||
var crypto = require('crypto');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var utils = require(__dirname + '/utils');
|
||||
var Writer = require('buffer-writer');
|
||||
var Reader = require('packet-reader');
|
||||
|
||||
@ -110,7 +108,7 @@ Connection.prototype.attachListeners = function(stream) {
|
||||
});
|
||||
};
|
||||
|
||||
Connection.prototype.requestSsl = function(config) {
|
||||
Connection.prototype.requestSsl = function() {
|
||||
this.checkSslResponse = true;
|
||||
|
||||
var bodyBuffer = this.writer
|
||||
@ -266,7 +264,7 @@ Connection.prototype.execute = function(config, more) {
|
||||
config = config || {};
|
||||
config.portal = config.portal || '';
|
||||
config.rows = config.rows || '';
|
||||
var buffer = this.writer
|
||||
this.writer
|
||||
.addCString(config.portal)
|
||||
.addInt32(config.rows);
|
||||
|
||||
|
@ -80,7 +80,7 @@ CopyFromStream.prototype.write = function (string, encoding) {
|
||||
return this._handleChunk.apply(this, arguments);
|
||||
};
|
||||
|
||||
CopyFromStream.prototype.end = function (string, encondig) {
|
||||
CopyFromStream.prototype.end = function (string, encoding) {
|
||||
if(this._error || this._finished) {
|
||||
return false;
|
||||
}
|
||||
|
@ -99,7 +99,6 @@ Query.prototype.handleError = function(err, connection) {
|
||||
};
|
||||
|
||||
Query.prototype.submit = function(connection) {
|
||||
var self = this;
|
||||
if(this.requiresPreparation()) {
|
||||
this.prepare(connection);
|
||||
} else {
|
||||
|
@ -1,5 +1,3 @@
|
||||
var url = require('url');
|
||||
var defaults = require(__dirname + "/defaults");
|
||||
|
||||
// convert a JS array to a postgres array literal
|
||||
// uses comma separator so won't work for types like box that use
|
||||
|
Loading…
Reference in New Issue
Block a user