You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/04/14 09:34:08 UTC

svn commit: r1092032 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/init.c

Author: mturk
Date: Thu Apr 14 07:34:07 2011
New Revision: 1092032

URL: http://svn.apache.org/viewvc?rev=1092032&view=rev
Log:
Axe unused old code

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/init.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/init.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/init.c?rev=1092032&r1=1092031&r2=1092032&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/init.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/init.c Thu Apr 14 07:34:07 2011
@@ -27,11 +27,6 @@ static CRITICAL_SECTION _lib_mutex;
 static SYSTEM_INFO      osinf;
 static OSVERSIONINFOEXA osver;
 static HINSTANCE        _instance = 0;
-static WCHAR            _dll_file_name[ACR_HBUFF_SIZ];
-static WCHAR            _dll_file_path[ACR_HBUFF_SIZ];
-static WCHAR            _mod_file_name[ACR_HBUFF_SIZ];
-static WCHAR            _dos_file_name[ACR_SBUFF_SIZ];
-static WCHAR            _dos_file_path[ACR_SBUFF_SIZ];
 static DWORD            _threadkey = TLS_OUT_OF_INDEXES;
 HANDLE                  _heap_handle = 0;
 LPSYSTEM_INFO           acr_osinf = &osinf;
@@ -173,9 +168,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, 
             _instance = instance;
             if (!InitializeCriticalSectionAndSpinCount(&_lib_mutex, ACR_SPINCOUNT))
                 return FALSE;
-            GetModuleFileNameW(instance, _mod_file_name, ACR_HBUFF_LEN);
-            GetLongPathNameW(_mod_file_name, _dll_file_name, ACR_HBUFF_LEN);
-            GetShortPathNameW(_dll_file_name, _dos_file_name, ACR_SBUFF_LEN);
             _heap_handle = HeapCreate(0, 0, 0);
             if (_heap_handle == 0) {
                 /* No point to continue if we are missing the process heap */