From dd78c5927091a4feb288e024e5a5199e83ac2c68 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Tue, 21 Feb 2023 21:09:54 +0100 Subject: [PATCH] remove win32_get_reparse_tag function The function is unused since (GH-15231) --- Modules/posixmodule.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 524dc7eb1ccc97..7436c635e678c9 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1507,32 +1507,6 @@ _Py_Sigset_Converter(PyObject *obj, void *addr) } #endif /* HAVE_SIGSET_T */ -#ifdef MS_WINDOWS - -static int -win32_get_reparse_tag(HANDLE reparse_point_handle, ULONG *reparse_tag) -{ - char target_buffer[_Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE]; - _Py_REPARSE_DATA_BUFFER *rdb = (_Py_REPARSE_DATA_BUFFER *)target_buffer; - DWORD n_bytes_returned; - - if (0 == DeviceIoControl( - reparse_point_handle, - FSCTL_GET_REPARSE_POINT, - NULL, 0, /* in buffer */ - target_buffer, sizeof(target_buffer), - &n_bytes_returned, - NULL)) /* we're not using OVERLAPPED_IO */ - return FALSE; - - if (reparse_tag) - *reparse_tag = rdb->ReparseTag; - - return TRUE; -} - -#endif /* MS_WINDOWS */ - /* Return a dictionary corresponding to the POSIX environment table */ #if defined(WITH_NEXT_FRAMEWORK) || (defined(__APPLE__) && defined(Py_ENABLE_SHARED)) /* On Darwin/MacOSX a shared library or framework has no access to