Skip to content

Commit 06814dc

Browse files
committed
Fully revert #255 as not released yet in core.
1 parent b062fe0 commit 06814dc

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

build/files.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -200,25 +200,6 @@ const headRegexp = /(^module.exports = \w+;?)/m
200200
/^function onCorkedFinish[\s\S]+?\r?\n\}/m,
201201
''
202202
]
203-
, addConstructors = [
204-
headRegexp,
205-
`$1\n\n
206-
// It seems a linked list but it is not
207-
// there will be only 2 of these for each stream
208-
function CorkedRequest(state) {
209-
this.next = null;
210-
this.entry = null;
211-
this.finish = onCorkedFinish.bind(undefined, this, state);
212-
}\n\n`
213-
]
214-
, useWriteReq = [
215-
/state\.lastBufferedRequest = \{.+?\}/g,
216-
`state.lastBufferedRequest = new WriteReq(chunk, encoding, cb)`
217-
]
218-
, useCorkedRequest = [
219-
/var corkReq = [\s\S]+?(.+?)\.corkedRequestsFree = corkReq/g,
220-
`$1.corkedRequestsFree = new CorkedRequest($1)`
221-
]
222203

223204
module.exports['_stream_duplex.js'] = [
224205
requireReplacement
@@ -300,9 +281,6 @@ module.exports['_stream_writable.js'] = [
300281
, removeOnWriteBind
301282
, removeCorkedFinishBind
302283
, removeOnCorkedFinish
303-
, addConstructors
304-
, useWriteReq
305-
, useCorkedRequest
306284
]
307285
module.exports['internal/streams/BufferList.js'] = [
308286
bufferShimFix

lib/_stream_writable.js

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

77
module.exports = Writable;
88

9-
// It seems a linked list but it is not
10-
// there will be only 2 of these for each stream
11-
function CorkedRequest(state) {
12-
this.next = null;
13-
this.entry = null;
14-
this.finish = onCorkedFinish.bind(undefined, this, state);
15-
}
16-
179
/*<replacement>*/
1810
var processNextTick = require('process-nextick-args');
1911
/*</replacement>*/
@@ -556,4 +548,4 @@ function CorkedRequest(state) {
556548
state.corkedRequestsFree = _this;
557549
}
558550
};
559-
}
551+
}

0 commit comments

Comments
 (0)