summaryrefslogtreecommitdiff
path: root/lib/tty.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tty.js')
-rw-r--r--lib/tty.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/tty.js b/lib/tty.js
index 83e00df110..62945a78eb 100644
--- a/lib/tty.js
+++ b/lib/tty.js
@@ -25,11 +25,7 @@ const { inherits, _extend } = require('util');
const net = require('net');
const { TTY, isTTY } = internalBinding('tty_wrap');
const errors = require('internal/errors');
-const {
- ERR_INVALID_FD,
- ERR_TTY_INIT_FAILED,
- ERR_TTY_WRITABLE_NOT_READABLE
-} = errors.codes;
+const { ERR_INVALID_FD, ERR_TTY_INIT_FAILED } = errors.codes;
const { getColorDepth } = require('internal/tty');
// Lazy loaded for startup performance.
@@ -131,13 +127,6 @@ WriteStream.prototype._refreshSize = function() {
}
};
-// A WriteStream is not readable from, so _read become a no-op.
-// this method could still be called because net.Socket()
-// is a duplex
-WriteStream.prototype._read = function() {
- this.destroy(new ERR_TTY_WRITABLE_NOT_READABLE());
-};
-
// Backwards-compat
WriteStream.prototype.cursorTo = function(x, y) {
if (readline === undefined) readline = require('readline');