Skip to content

Commit 19331f2

Browse files
committed
Spring cleaning.
1 parent 9b8b74b commit 19331f2

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎lib/msgpack.js‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ var events = require('events');
55
var mpBindings = require('mpBindings');
66
var sys = require('sys');
77

8-
var debug = ('NODE_DEBUG' in process.env) ?
9-
function(m) { sys.error.apply(this, arguments); } :
10-
function() { };
11-
128
var pack = mpBindings.pack;
139
var unpack = mpBindings.unpack;
1410

@@ -34,14 +30,12 @@ var Stream = function(s) {
3430
args.push(arguments[i]);
3531
}
3632

37-
s.write.apply(s, args);
33+
return s.write.apply(s, args);
3834
};
3935

4036
// Listen for data from the underlying stream, consuming it and emitting
4137
// 'msg' events as we find whole messages.
4238
s.addListener('data', function(d) {
43-
debug('received ' + d.length + ' bytes');
44-
4539
// Make sure that self.buf reflects the entirety of the unread stream
4640
// of bytes; it needs to be a single buffer
4741
if (self.buf) {
@@ -71,8 +65,6 @@ var Stream = function(s) {
7165
self.buf = null;
7266
}
7367
}
74-
75-
debug(((self.buf) ? self.buf.length : 0) + ' bytes remaining');
7668
});
7769
};
7870

0 commit comments

Comments
 (0)