summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-08 23:00:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-08 23:00:32 +0000
commit96e0b7d45f19d5626c1264085ca72f87f0fdf9a0 (patch)
treee4170fc9053f247f12b1817e7d1278b2c5371a53 /win32
parentd9166317ca8a009f60184dc0df7e53b4d221e102 (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 0 insertions, 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;