mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
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>
This commit is contained in:
parent
00cbbaa33e
commit
f961a63ed6
@ -491,7 +491,6 @@ public:
|
|||||||
bool issymlink () {return pc.issymlink ();}
|
bool issymlink () {return pc.issymlink ();}
|
||||||
bool __reg2 device_access_denied (int);
|
bool __reg2 device_access_denied (int);
|
||||||
int __reg3 fhaccess (int flags, bool);
|
int __reg3 fhaccess (int flags, bool);
|
||||||
virtual bool __reg1 has_ongoing_io () {return false;}
|
|
||||||
|
|
||||||
fhandler_base (void *) {}
|
fhandler_base (void *) {}
|
||||||
|
|
||||||
|
@ -591,9 +591,6 @@ pipe_data_available (int fd, fhandler_base *fh, HANDLE h, bool writing)
|
|||||||
FILE_PIPE_LOCAL_INFORMATION fpli = {0};
|
FILE_PIPE_LOCAL_INFORMATION fpli = {0};
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
if (fh->has_ongoing_io ())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
status = NtQueryInformationFile (h, &iosb, &fpli, sizeof (fpli),
|
status = NtQueryInformationFile (h, &iosb, &fpli, sizeof (fpli),
|
||||||
FilePipeLocalInformation);
|
FilePipeLocalInformation);
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user