diff options
Diffstat (limited to 'lib/tty.js')
-rw-r--r-- | lib/tty.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/tty.js b/lib/tty.js index c12036e51d..7c4f80a482 100644 --- a/lib/tty.js +++ b/lib/tty.js @@ -14,16 +14,6 @@ exports.isatty = function(fd) { }; -// backwards-compat -exports.setRawMode = internalUtil.deprecate(function(flag) { - if (!process.stdin.isTTY) { - throw new Error('Can\'t set raw mode on non-tty'); - } - process.stdin.setRawMode(flag); -}, 'tty.setRawMode is deprecated. ' + - 'Use process.stdin.setRawMode instead.'); - - function ReadStream(fd, options) { if (!(this instanceof ReadStream)) return new ReadStream(fd, options); |