From f961a63ed670788074c688c0cdaab3b5146b6b61 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 15 Sep 2021 13:58:36 +0200 Subject: [PATCH] Cygwin: drop useless method fhandler_base::has_ongoing_io This was a remnant of the fhandler_base_overlapped class. Signed-off-by: Corinna Vinschen --- winsup/cygwin/fhandler.h | 1 - winsup/cygwin/select.cc | 3 --- 2 files changed, 4 deletions(-) diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 9580a698c..919655012 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -491,7 +491,6 @@ public: bool issymlink () {return pc.issymlink ();} bool __reg2 device_access_denied (int); int __reg3 fhaccess (int flags, bool); - virtual bool __reg1 has_ongoing_io () {return false;} fhandler_base (void *) {} diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index fd2312298..a09d8a34d 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -591,9 +591,6 @@ pipe_data_available (int fd, fhandler_base *fh, HANDLE h, bool writing) FILE_PIPE_LOCAL_INFORMATION fpli = {0}; NTSTATUS status; - if (fh->has_ongoing_io ()) - return 0; - status = NtQueryInformationFile (h, &iosb, &fpli, sizeof (fpli), FilePipeLocalInformation); if (!NT_SUCCESS (status))