From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id 4B0AD3858016; Sat, 5 Feb 2022 08:01:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B0AD3858016 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-3_3-branch] Cygwin: console: Remove unnecessary (redundant) code. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/cygwin-3_3-branch X-Git-Oldrev: df0a643c6a069d9f4175a5aacabeee7c8fd54bef X-Git-Newrev: cf47cea36a44a15f031cdf74d9d98c406819f6c4 Message-Id: <20220205080119.4B0AD3858016@sourceware.org> Date: Sat, 5 Feb 2022 08:01:19 +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:19 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dcf47cea36a4= 4a15f031cdf74d9d98c406819f6c4 commit cf47cea36a44a15f031cdf74d9d98c406819f6c4 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 65325adeb..23421dbfa 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",