From 96e0b7d45f19d5626c1264085ca72f87f0fdf9a0 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 8 Mar 2016 23:00:32 +0000 Subject: [PATCH] * 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 --- win32/win32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/win32/win32.c b/win32/win32.c index 45c2f86a6d..1ee56aaf2c 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -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;