mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_write_console): remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d9166317ca
commit
96e0b7d45f
1 changed files with 0 additions and 2 deletions
|
@ -7031,7 +7031,6 @@ rb_w32_write(int fd, const void *buf, size_t size)
|
|||
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, int fd)
|
|||
struct constat *s;
|
||||
long len;
|
||||
|
||||
if (disable) return -1L;
|
||||
handle = (HANDLE)_osfhnd(fd);
|
||||
if (!GetConsoleMode(handle, &dwMode))
|
||||
return -1L;
|
||||
|
|
Loading…
Add table
Reference in a new issue