Skip to content

Commit 417df7f

Browse files
Remove unused code
1 parent 8c019c1 commit 417df7f

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16083,7 +16083,7 @@ DirEntry_from_file_directory_information(PyObject *module, path_t *path, FILE_DI
1608316083
result->st_ino = fileDirectoryInformation->FileIndex;
1608416084
}
1608516085

16086-
#if 0 /* Fix this */
16086+
#if 0 /* TODO: Fix this */
1608716087
/* bpo-37834: Only actual symlinks set the S_IFLNK flag. But lstat() will
1608816088
open other name surrogate reparse points without traversing them. To
1608916089
detect/handle these, check st_file_attributes and st_reparse_tag. */
@@ -16655,31 +16655,6 @@ os_scandir_impl(PyObject *module, path_t *path)
1665516655
}
1665616656
iterator->fileDirectoryInformationSize = INITIAL_FILE_DIRECTORY_INFORMATION_ENTRY_SIE;
1665716657

16658-
#if 0 /* Does not seem to be neccessary according to MS-Docs */
16659-
Py_BEGIN_ALLOW_THREADS
16660-
ntstatus = _Py_NtQueryDirectoryFile(
16661-
iterator->directoryHandle, /* FileHandle */
16662-
NULL, /* Event */
16663-
NULL, /* ApcRoutine (callback) */
16664-
NULL, /* ApcContext (for callback routine) */
16665-
&ioStatusBlock, /* IoStatusBlock */
16666-
NULL, /* FileInformation (output) */
16667-
0, /* Length (maximum length of output buffer) */
16668-
FileDirectoryInformation, /* FileInformationClass */
16669-
TRUE, /* ReturnSingleEntry */
16670-
NULL, /* FileName */
16671-
TRUE /* RestartScan */
16672-
);
16673-
Py_END_ALLOW_THREADS
16674-
if (!NT_SUCCESS(ntstatus))
16675-
{
16676-
path_error(&iterator->path);
16677-
dosErrorCode = _Py_RtlNtStatusToDosError(ntstatus);
16678-
SetLastError(dosErrorCode);
16679-
goto error;
16680-
}
16681-
#endif
16682-
1668316658
#else /* POSIX */
1668416659
errno = 0;
1668516660
#ifdef HAVE_FDOPENDIR

0 commit comments

Comments
 (0)