Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ed4e69

Browse filesBrowse files
addaleaxMylesBorins
authored andcommitted
net: remove Socket.prototoype.read
Unused since 34b535f. PR-URL: #18568 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 4d78eb8 commit 6ed4e69
Copy full SHA for 6ed4e69

File tree

Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Open diff view settings
Collapse file

‎lib/net.js‎

Copy file name to clipboardExpand all lines: lib/net.js
-9Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -377,15 +377,6 @@ function writeAfterFIN(chunk, encoding, cb) {
377377
}
378378
}
379379

380-
Socket.prototype.read = function(n) {
381-
if (n === 0)
382-
return stream.Readable.prototype.read.call(this, n);
383-
384-
this.read = stream.Readable.prototype.read;
385-
this._consuming = true;
386-
return this.read(n);
387-
};
388-
389380
Socket.prototype.setTimeout = function(msecs, callback) {
390381
if (msecs === 0) {
391382
timers.unenroll(this);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.