Skip to content

Commit 150599e

Browse files
win32/dllmain.c: drop some unused code (php#16353)
The code block is guarded by `#if 0`, and even if it wasn't it is a switch that only contains breaks, i.e. it wouldn't actually do anything if enabled.
1 parent b2ff871 commit 150599e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

win32/dllmain.c

-19
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID dummy)
3333
{
3434
BOOL ret = TRUE;
3535

36-
#if 0 /* prepared */
37-
switch (reason)
38-
{
39-
case DLL_PROCESS_ATTACH:
40-
break;
41-
case DLL_PROCESS_DETACH:
42-
/* pass */
43-
break;
44-
45-
case DLL_THREAD_ATTACH:
46-
/* pass */
47-
break;
48-
49-
case DLL_THREAD_DETACH:
50-
/* pass */
51-
break;
52-
}
53-
#endif
54-
5536
#ifdef HAVE_LIBXML
5637
/* This imply that only LIBXML_STATIC_FOR_DLL is supported ATM.
5738
If that changes, this place will need some rework.

0 commit comments

Comments
 (0)