From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id 746923858D28; Sat, 5 Feb 2022 08:01:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 746923858D28 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Takashi Yano To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: console: Remove unnecessary (redundant) code. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/master X-Git-Oldrev: 24b1e4b942f687446337ef51d68d93eba33ee985 X-Git-Newrev: 44d870417997fdd0501f6baf7fccaed00e25602f Message-Id: <20220205080143.746923858D28@sourceware.org> Date: Sat, 5 Feb 2022 08:01:43 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2022 08:01:43 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D44d87041799= 7fdd0501f6baf7fccaed00e25602f commit 44d870417997fdd0501f6baf7fccaed00e25602f Author: Takashi Yano Date: Sat Feb 5 16:52:33 2022 +0900 Cygwin: console: Remove unnecessary (redundant) code. Diff: --- winsup/cygwin/fhandler_console.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_con= sole.cc index fa5d7ce9c..7a1a45bc1 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -2177,7 +2177,6 @@ fhandler_console::char_command (char c) if (y =3D=3D con.b.srWindow.Bottom) { WriteConsoleW (get_output_handle (), L"\033[2K", 4, 0, 0); - wpbuf.empty (); break; } if (y =3D=3D con.b.srWindow.Top @@ -2222,7 +2221,6 @@ fhandler_console::char_command (char c) if (y =3D=3D con.b.srWindow.Bottom) { WriteConsoleW (get_output_handle (), L"\033[2K", 4, 0, 0); - wpbuf.empty (); break; } __small_swprintf (bufw, L"\033[%d;%dr",