summaryrefslogtreecommitdiff
path: root/lib/tty.js
diff options
context:
space:
mode:
authorWyatt Preul <wpreul@gmail.com>2015-08-24 16:25:51 -0500
committerJames M Snell <jasnell@gmail.com>2015-11-18 13:16:02 -0800
commita2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3 (patch)
tree355c2fbd823dbdd71e0da7acdb8cd9f06a0e41d5 /lib/tty.js
parent4cf19ad1bbfea24d5f7931e825f3f8638924a23c (diff)
downloadandroid-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>
Diffstat (limited to 'lib/tty.js')
-rw-r--r--lib/tty.js10
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);