Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up unused code

  • Loading branch information...
commit 7d3b32c1c39b0230ae8f938cbfbdad501553e606 1 parent f920d42
@mscdex authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 { → lib}/nntp.js
View
8 nntp.js → lib/nntp.js
@@ -7,8 +7,8 @@ var tls = require('tls'),
EventEmitter = require('events').EventEmitter,
Stream = require('stream'),
util = require('util'),
- inherits = util.inherits,
SBMH = require('streamsearch'),
+ inherits = util.inherits,
reCRLF = /\r\n/g,
reListActive = /^(.+)\s+(\d+)\s+(\d+)\s+(.+)$/,
reGroupDesc = /^([^\s]+)\s+(.+)$/,
@@ -62,8 +62,6 @@ var tls = require('tls'),
504: 'Invalid base64-encoded argument'
};
-var inspect = require('util').inspect;
-
function NNTP() {
this._sbmhML = new SBMH(bytesMLTerm);
this._sbmhML.maxMatches = 1;
@@ -225,7 +223,7 @@ NNTP.prototype.connect = function(options) {
this._socket.once('error', function(err) {
self.emit('error', err);
});
- socket.on('data', function ondata(chunk) {
+ socket.on('data', function(chunk) {
chunk.p = 0;
var chlen = chunk.length, r = 0;
@@ -666,7 +664,7 @@ NNTP.prototype.post = function(msg, cb) {
};
// Private methods
-NNTP.prototype._send = function(cmd, params, cb, raw) {
+NNTP.prototype._send = function(cmd, params, cb) {
if (cmd !== undefined)
this._queue.push({ cmd: cmd, params: params, cb: cb });
if (!this._curReq && this._queue.length) {
Please sign in to comment.
Something went wrong with that request. Please try again.