File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -200,25 +200,6 @@ const headRegexp = /(^module.exports = \w+;?)/m
200
200
/ ^ f u n c t i o n o n C o r k e d F i n i s h [ \s \S ] + ?\r ? \n \} / m,
201
201
''
202
202
]
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
- / s t a t e \. l a s t B u f f e r e d R e q u e s t = \{ .+ ?\} / g,
216
- `state.lastBufferedRequest = new WriteReq(chunk, encoding, cb)`
217
- ]
218
- , useCorkedRequest = [
219
- / v a r c o r k R e q = [ \s \S ] + ?( .+ ?) \. c o r k e d R e q u e s t s F r e e = c o r k R e q / g,
220
- `$1.corkedRequestsFree = new CorkedRequest($1)`
221
- ]
222
203
223
204
module . exports [ '_stream_duplex.js' ] = [
224
205
requireReplacement
@@ -300,9 +281,6 @@ module.exports['_stream_writable.js'] = [
300
281
, removeOnWriteBind
301
282
, removeCorkedFinishBind
302
283
, removeOnCorkedFinish
303
- , addConstructors
304
- , useWriteReq
305
- , useCorkedRequest
306
284
]
307
285
module . exports [ 'internal/streams/BufferList.js' ] = [
308
286
bufferShimFix
Original file line number Diff line number Diff line change 6
6
7
7
module . exports = Writable ;
8
8
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
-
17
9
/*<replacement>*/
18
10
var processNextTick = require ( 'process-nextick-args' ) ;
19
11
/*</replacement>*/
@@ -556,4 +548,4 @@ function CorkedRequest(state) {
556
548
state . corkedRequestsFree = _this ;
557
549
}
558
550
} ;
559
- }
551
+ }
You can’t perform that action at this time.
0 commit comments