Skip to content

Commit 492f1eb

Browse files
committed
Merge pull request brianc#561 from tgriesser/unused-vars
Remove unused variables
2 parents 7442ea9 + cd05033 commit 492f1eb

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

lib/connection-parameters.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var url = require('url');
22
var dns = require('dns');
3-
var path = require('path');
43

54
var defaults = require(__dirname + '/defaults');
65

lib/connection.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
var net = require('net');
2-
var crypto = require('crypto');
32
var EventEmitter = require('events').EventEmitter;
43
var util = require('util');
54

6-
var utils = require(__dirname + '/utils');
75
var Writer = require('buffer-writer');
86
var Reader = require('packet-reader');
97

@@ -110,7 +108,7 @@ Connection.prototype.attachListeners = function(stream) {
110108
});
111109
};
112110

113-
Connection.prototype.requestSsl = function(config) {
111+
Connection.prototype.requestSsl = function() {
114112
this.checkSslResponse = true;
115113

116114
var bodyBuffer = this.writer
@@ -266,7 +264,7 @@ Connection.prototype.execute = function(config, more) {
266264
config = config || {};
267265
config.portal = config.portal || '';
268266
config.rows = config.rows || '';
269-
var buffer = this.writer
267+
this.writer
270268
.addCString(config.portal)
271269
.addInt32(config.rows);
272270

lib/copystream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ CopyFromStream.prototype.write = function (string, encoding) {
8080
return this._handleChunk.apply(this, arguments);
8181
};
8282

83-
CopyFromStream.prototype.end = function (string, encondig) {
83+
CopyFromStream.prototype.end = function (string, encoding) {
8484
if(this._error || this._finished) {
8585
return false;
8686
}

lib/query.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ Query.prototype.handleError = function(err, connection) {
9999
};
100100

101101
Query.prototype.submit = function(connection) {
102-
var self = this;
103102
if(this.requiresPreparation()) {
104103
this.prepare(connection);
105104
} else {

lib/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var url = require('url');
2-
var defaults = require(__dirname + "/defaults");
31

42
// convert a JS array to a postgres array literal
53
// uses comma separator so won't work for types like box that use

0 commit comments

Comments
 (0)