Skip to content

Commit bcbc94d

Browse files
committed
removed duplicate writereq.
See 7af74b0#commitcomment-21310482
1 parent c271a6a commit bcbc94d

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

build/files.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,7 @@ const headRegexp = /(^module.exports = \w+;?)/m
202202
]
203203
, addConstructors = [
204204
headRegexp,
205-
`$1\n\nfunction WriteReq(chunk, encoding, cb) {
206-
this.chunk = chunk;
207-
this.encoding = encoding;
208-
this.callback = cb;
209-
this.next = null;
210-
}
205+
`$1\n\n
211206
// It seems a linked list but it is not
212207
// there will be only 2 of these for each stream
213208
function CorkedRequest(state) {

lib/_stream_writable.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
module.exports = Writable;
88

9-
function WriteReq(chunk, encoding, cb) {
10-
this.chunk = chunk;
11-
this.encoding = encoding;
12-
this.callback = cb;
13-
this.next = null;
14-
}
159
// It seems a linked list but it is not
1610
// there will be only 2 of these for each stream
1711
function CorkedRequest(state) {
@@ -562,4 +556,4 @@ function CorkedRequest(state) {
562556
state.corkedRequestsFree = _this;
563557
}
564558
};
565-
}
559+
}

0 commit comments

Comments
 (0)