Cygwin: fhandler_*: remove isdevice() and is_auto_device()

isdevice() is used only in the definition of is_auto_device().  And
the latter is used only once, in a context where isdevice() always
returns true.
This commit is contained in:
Ken Brown
2019-07-19 15:39:35 -04:00
parent 6b7723a830
commit 4beb9da118
2 changed files with 1 additions and 4 deletions

View File

@ -38,7 +38,7 @@ fhandler_dev_raw::fstat (struct stat *buf)
debug_printf ("here");
fhandler_base::fstat (buf);
if (is_auto_device ())
if (!dev ().isfs ())
{
if (get_major () == DEV_TAPE_MAJOR)
buf->st_mode = S_IFCHR | STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH;