public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: drop useless method fhandler_base::has_ongoing_io
Date: Wed, 15 Sep 2021 12:18:21 +0000 (GMT)	[thread overview]
Message-ID: <20210915121821.C6EB13858413@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f961a63ed670788074c688c0cdaab3b5146b6b61

commit f961a63ed670788074c688c0cdaab3b5146b6b61
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Sep 15 13:58:36 2021 +0200

    Cygwin: drop useless method fhandler_base::has_ongoing_io
    
    This was a remnant of the fhandler_base_overlapped class.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 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))


                 reply	other threads:[~2021-09-15 12:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210915121821.C6EB13858413@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).