Skip to content

Commit e5c8308

Browse files
committed
fix merge error in pngstream.js
See #740 (comment)
1 parent fec0544 commit e5c8308

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

lib/pngstream.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,6 @@ var PNGStream = module.exports = function PNGStream(canvas, sync) {
5151

5252
util.inherits(PNGStream, Readable);
5353

54-
var PNGStream = module.exports = function PNGStream(canvas, sync) {
55-
Readable.call(this);
56-
57-
var self = this;
58-
var method = sync
59-
? 'streamPNGSync'
60-
: 'streamPNG';
61-
this.sync = sync;
62-
this.canvas = canvas;
63-
64-
// TODO: implement async
65-
if ('streamPNG' === method) method = 'streamPNGSync';
66-
this.method = method;
67-
};
68-
69-
util.inherits(PNGStream, Readable);
70-
7154
function noop() {}
7255

7356
PNGStream.prototype._read = function _read() {

0 commit comments

Comments
 (0)