diff options
author | Wyatt Preul <wpreul@gmail.com> | 2015-08-24 16:25:51 -0500 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-11-18 13:16:02 -0800 |
commit | a2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3 (patch) | |
tree | 355c2fbd823dbdd71e0da7acdb8cd9f06a0e41d5 | |
parent | 4cf19ad1bbfea24d5f7931e825f3f8638924a23c (diff) | |
download | android-node-v8-a2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3.tar.gz android-node-v8-a2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3.tar.bz2 android-node-v8-a2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3.zip |
tty: Remove deprecated setRawMode wrapper
PR-URL: https://github.com/nodejs/node/pull/2528
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r-- | doc/api/tty.markdown | 4 | ||||
-rw-r--r-- | lib/tty.js | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/doc/api/tty.markdown b/doc/api/tty.markdown index 279a1dd0b9..0b1f55f177 100644 --- a/doc/api/tty.markdown +++ b/doc/api/tty.markdown @@ -65,8 +65,4 @@ gets updated on "resize" events. 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. - [tty.ReadStream#setRawMode]: #tty_rs_setrawmode_mode 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); |