From 4a26246bebbd0df03e8f814f937b1dae3f57cbb4 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Jun 2014 22:16:19 +0000 Subject: [PATCH] win32.c: unused variable * win32/win32.c (envarea): remove no longer used variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/win32/win32.c b/win32/win32.c index 900a9cc42d..ef1d7a9e3b 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -610,7 +610,6 @@ static int NtSocketsInitialized = 0; static st_table *socklist = NULL; static st_table *conlist = NULL; #define conlist_disabled ((st_table *)-1) -static char *envarea; static char *uenvarea; /* License: Ruby's */ @@ -660,10 +659,6 @@ exit_handler(void) st_free_table(conlist); conlist = NULL; } - if (envarea) { - FreeEnvironmentStrings(envarea); - envarea = NULL; - } if (uenvarea) { free(uenvarea); uenvarea = NULL; @@ -4636,10 +4631,6 @@ w32_getenv(const char *name, UINT cp) free(uenvarea); uenvarea = NULL; } - if (envarea) { - FreeEnvironmentStrings(envarea); - envarea = NULL; - } wenvarea = GetEnvironmentStringsW(); if (!wenvarea) { map_errno(GetLastError());