This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/main by this push:
new b1042ecc3 Remove unused code
b1042ecc3 is described below
commit b1042ecc3711108c124cc8734fc11ce9d61eb516
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 29 12:20:17 2022 +0100
Remove unused code
---
native/os/win32/system.c | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/native/os/win32/system.c b/native/os/win32/system.c
index f4f0b7220..0f7377f8c 100644
--- a/native/os/win32/system.c
+++ b/native/os/win32/system.c
@@ -24,7 +24,6 @@
#include "apr_poll.h"
#include "apr_network_io.h"
#include "apr_arch_misc.h" /* for apr_os_level */
-#include "apr_arch_atime.h" /* for FileTimeToAprTime */
#include "tcn.h"
#include "ssl_private.h"
@@ -37,13 +36,6 @@
static CRITICAL_SECTION dll_critical_section; /* dll's critical section */
static HINSTANCE dll_instance = NULL;
-static SYSTEM_INFO dll_system_info;
-static HANDLE h_kernel = NULL;
-static HANDLE h_ntdll = NULL;
-static char dll_file_name[MAX_PATH];
-
-typedef BOOL (WINAPI *pfnGetSystemTimes)(LPFILETIME, LPFILETIME, LPFILETIME);
-static pfnGetSystemTimes fnGetSystemTimes = NULL;
BOOL
WINAPI
@@ -60,15 +52,6 @@ DllMain(
case DLL_PROCESS_ATTACH:
InitializeCriticalSection(&dll_critical_section);
dll_instance = instance;
- GetSystemInfo(&dll_system_info);
- if ((h_kernel = LoadLibrary("kernel32.dll")) != NULL)
- fnGetSystemTimes = (pfnGetSystemTimes)GetProcAddress(h_kernel,
- "GetSystemTimes");
- if (fnGetSystemTimes == NULL) {
- FreeLibrary(h_kernel);
- h_kernel = NULL;
- }
- GetModuleFileName(instance, dll_file_name, sizeof(dll_file_name));
break;
/** The attached process creates a new thread.
*/
@@ -85,10 +68,6 @@ DllMain(
* or FreeLibrary.
*/
case DLL_PROCESS_DETACH:
- if (h_kernel)
- FreeLibrary(h_kernel);
- if (h_ntdll)
- FreeLibrary(h_ntdll);
DeleteCriticalSection(&dll_critical_section);
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]