diff --git a/doc/api/tty.markdown b/doc/api/tty.markdown index 1a99041e60f486..6492e94329b8dd 100644 --- a/doc/api/tty.markdown +++ b/doc/api/tty.markdown @@ -22,11 +22,6 @@ Returns `true` or `false` depending on if the `fd` is associated with a terminal. -## tty.setRawMode(mode) - - Stability: 0 - Deprecated: Use [tty.ReadStream#setRawMode][] (i.e. process.stdin.setRawMode) instead. - - ## Class: ReadStream A `net.Socket` subclass that represents the readable portion of a tty. In normal diff --git a/lib/tty.js b/lib/tty.js index f3f84ca5a6e9f7..7c4f80a4823d32 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);