From b8c4bcd83597af3c64696edc4664a77f4086813d Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Mon, 24 Aug 2015 16:25:51 -0500 Subject: [PATCH] tty: Remove deprecated setRawMode wrapper --- doc/api/tty.markdown | 5 ----- lib/tty.js | 10 ---------- 2 files changed, 15 deletions(-) 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);