ruby-changes:41972
From: usa <ko1@a...>
Date: Wed, 9 Mar 2016 08:00:36 +0900 (JST)
Subject: [ruby-changes:41972] usa:r54046 (trunk): * win32/win32.c (rb_w32_write_console): remove unused variable.
usa 2016-03-09 08:00:32 +0900 (Wed, 09 Mar 2016) New Revision: 54046 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54046 Log: * win32/win32.c (rb_w32_write_console): remove unused variable. Modified files: trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 54045) +++ win32/win32.c (revision 54046) @@ -7031,7 +7031,6 @@ rb_w32_write(int fd, const void *buf, si https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L7031 long rb_w32_write_console(uintptr_t strarg, int fd) { - static int disable; HANDLE handle; DWORD dwMode, reslen; VALUE str = strarg; @@ -7041,7 +7040,6 @@ rb_w32_write_console(uintptr_t strarg, i https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L7040 struct constat *s; long len; - if (disable) return -1L; handle = (HANDLE)_osfhnd(fd); if (!GetConsoleMode(handle, &dwMode)) return -1L; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/