GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — util: remove pump · nodejs/node@007cfea

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • util.markdown
  • lib
    • repl.js
    • util.js
  • test/sequential
    • test-pump-file2tcp-noexist.js
    • test-pump-file2tcp.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/util.markdown‎

Copy file name to clipboardExpand all lines: doc/api/util.markdown
-6Lines changed: 0 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,6 @@ Output with timestamp on `stdout`.
493493

494494
Deprecated predecessor of `console.log`.
495495

496-
## util.pump(readableStream, writableStream[, callback])
497-
498-
Stability: 0 - Deprecated: Use readableStream.pipe(writableStream)
499-
500-
Deprecated predecessor of `stream.pipe()`.
501-
502496
## util.puts([...])
503497

504498
Stability: 0 - Deprecated: Use console.log() instead.
Collapse file

‎lib/repl.js‎

Copy file name to clipboardExpand all lines: lib/repl.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ function filteredOwnPropertyNames(obj) {
611611
//
612612
// Example:
613613
// complete('var foo = util.')
614-
// -> [['util.print', 'util.debug', 'util.log', 'util.inspect', 'util.pump'],
614+
// -> [['util.print', 'util.debug', 'util.log', 'util.inspect'],
615615
// 'util.' ]
616616
//
617617
// Warning: This eval's code like "foo.bar.baz", so it will run property
Collapse file

‎lib/util.js‎

Copy file name to clipboardExpand all lines: lib/util.js
-38Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -864,44 +864,6 @@ exports.error = internalUtil.deprecate(function(x) {
864864
}, 'util.error is deprecated. Use console.error instead.');
865865

866866

867-
exports.pump = internalUtil.deprecate(function(readStream, writeStream, cb) {
868-
var callbackCalled = false;
869-
870-
function call(a, b, c) {
871-
if (cb && !callbackCalled) {
872-
cb(a, b, c);
873-
callbackCalled = true;
874-
}
875-
}
876-
877-
readStream.addListener('data', function(chunk) {
878-
if (writeStream.write(chunk) === false) readStream.pause();
879-
});
880-
881-
writeStream.addListener('drain', function() {
882-
readStream.resume();
883-
});
884-
885-
readStream.addListener('end', function() {
886-
writeStream.end();
887-
});
888-
889-
readStream.addListener('close', function() {
890-
call();
891-
});
892-
893-
readStream.addListener('error', function(err) {
894-
writeStream.end();
895-
call(err);
896-
});
897-
898-
writeStream.addListener('error', function(err) {
899-
readStream.destroy();
900-
call(err);
901-
});
902-
}, 'util.pump is deprecated. Use readableStream.pipe instead.');
903-
904-
905867
exports._errnoException = function(err, syscall, original) {
906868
var errname = uv.errname(err);
907869
var message = syscall + ' ' + errname;
Collapse file

‎test/sequential/test-pump-file2tcp-noexist.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-pump-file2tcp-noexist.js
-47Lines changed: 0 additions & 47 deletions
This file was deleted.
Collapse file

‎test/sequential/test-pump-file2tcp.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-pump-file2tcp.js
-38Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.