public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/cygwin-3_0-branch] Cygwin: remove path_conv::is_fs_device()
@ 2019-07-22 12:12 Ken Brown
  0 siblings, 0 replies; only message in thread
From: Ken Brown @ 2019-07-22 12:12 UTC (permalink / raw)
  To: cygwin-cvs

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

commit 585370924b1141b4615912176f7934644c9034e1
Author: Ken Brown <kbrown@cornell.edu>
Date:   Sat Jul 20 18:35:15 2019 -0400

    Cygwin: remove path_conv::is_fs_device()
    
    It is used only once.

Diff:
---
 winsup/cygwin/path.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index d1be1db..2fd9133 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -183,9 +183,9 @@ class path_conv
   int isfifo () const {return dev.is_device (FH_FIFO);}
   int isspecial () const {return dev.not_device (FH_FS);}
   int iscygdrive () const {return dev.is_device (FH_CYGDRIVE);}
-  int is_fs_device () const {return isdevice () && is_fs_special ();}
   int is_fs_special () const {return dev.is_fs_special ();}
-  int is_lnk_special () const {return is_fs_device () || isfifo () || is_lnk_symlink ();}
+  int is_lnk_special () const {return (isdevice () && is_fs_special ())
+      || isfifo () || is_lnk_symlink ();}
 #ifdef __WITH_AF_UNIX
   int issocket () const {return dev.is_device (FH_LOCAL)
 				|| dev.is_device (FH_UNIX);}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-22 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22 12:12 [newlib-cygwin/cygwin-3_0-branch] Cygwin: remove path_conv::is_fs_device() Ken Brown

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).