diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-08-02 10:33:28 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-08-02 10:33:28 +0000 |
commit | 98144884f8e6d46732f8d02f82ac08ec90b53e5c (patch) | |
tree | 6bb16a23095ebbbae0b6c4207caaf756bedfe063 /winsup/cygwin/path.h | |
parent | b6c2b7cc73d9b622e895a9d3ad852a1d438ea54e (diff) | |
download | cygnal-98144884f8e6d46732f8d02f82ac08ec90b53e5c.tar.gz cygnal-98144884f8e6d46732f8d02f82ac08ec90b53e5c.tar.bz2 cygnal-98144884f8e6d46732f8d02f82ac08ec90b53e5c.zip |
* path.h (struct fs_info): Drop root_len and name_hash members.
(fsinfo::length): Remove.
(path_conv::rootdir): Remove.
* syscalls.cc (try_to_bin): Use rootdir function instead of
path_conv::rootdir method.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r-- | winsup/cygwin/path.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 41063e375..e911f4156 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -93,8 +93,6 @@ class symlink_info; struct fs_info { private: - int root_len; - __ino64_t name_hash; struct status_flags { DWORD flags; /* Volume flags */ @@ -112,8 +110,6 @@ struct fs_info public: void clear () { - name_hash = 0; - root_len = 0; flags () = 0; is_remote_drive (false); has_buggy_open (false); @@ -127,7 +123,6 @@ struct fs_info is_cdrom (false); } inline DWORD& flags () {return status.flags;}; - inline int length () const {return root_len;} IMPLEMENT_STATUS_FLAG (bool, is_remote_drive) IMPLEMENT_STATUS_FLAG (bool, has_buggy_open) @@ -158,17 +153,6 @@ class path_conv device dev; bool case_clash; - int rootdir (char *buf) const - { - if (!fs.length ()) - return fs.length (); - strncpy (buf, path, fs.length ()); - /* The length is always stored with trailing backslash. Make sure the - backslash is actually present in the returned path. */ - buf[fs.length () - 1] = '\\'; - buf[fs.length ()] = '\0'; - return fs.length (); - } bool isremote () const {return fs.is_remote_drive ();} bool has_acls () const {return fs.has_acls (); } bool hasgood_inode () const {return fs.hasgood_inode (); } |