Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables #561

Merged
merged 1 commit into from Apr 9, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/connection-parameters.js
@@ -1,6 +1,5 @@
var url = require('url');
var dns = require('dns');
var path = require('path');

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

Expand Down
6 changes: 2 additions & 4 deletions lib/connection.js
@@ -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');

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion lib/copystream.js
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion lib/query.js
Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions lib/utils.js
@@ -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
Expand Down