From a2c0aa84e0c1ffc299d8e11eebd8a93688e1f4d3 Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Mon, 24 Aug 2015 16:25:51 -0500 Subject: tty: Remove deprecated setRawMode wrapper PR-URL: https://github.com/nodejs/node/pull/2528 Reviewed-By: Brian White Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/tty.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/tty.js') 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); -- cgit v1.2.3