Cygwin: mount: remove unused method mount_info::set_flags_from_win32_path
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
5e6ce1cfb2
commit
f76c8519ac
|
@ -987,21 +987,6 @@ out:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return flags associated with a mount point given the win32 path. */
|
|
||||||
|
|
||||||
unsigned
|
|
||||||
mount_info::set_flags_from_win32_path (const char *p)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < nmounts; i++)
|
|
||||||
{
|
|
||||||
mount_item &mi = mount[native_sorted[i]];
|
|
||||||
if (path_prefix_p (mi.native_path, p, mi.native_pathlen,
|
|
||||||
mi.flags & MOUNT_NOPOSIX))
|
|
||||||
return mi.flags;
|
|
||||||
}
|
|
||||||
return MOUNT_BINARY;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline char *
|
inline char *
|
||||||
skip_ws (char *in)
|
skip_ws (char *in)
|
||||||
{
|
{
|
||||||
|
|
|
@ -189,7 +189,6 @@ class mount_info
|
||||||
int add_item (const char *dev, const char *path, unsigned flags);
|
int add_item (const char *dev, const char *path, unsigned flags);
|
||||||
int del_item (const char *path, unsigned flags);
|
int del_item (const char *path, unsigned flags);
|
||||||
|
|
||||||
unsigned set_flags_from_win32_path (const char *path);
|
|
||||||
int conv_to_win32_path (const char *src_path, char *dst, device&,
|
int conv_to_win32_path (const char *src_path, char *dst, device&,
|
||||||
unsigned *flags = NULL);
|
unsigned *flags = NULL);
|
||||||
int conv_to_posix_path (PWCHAR src_path, char *posix_path, int ccp_flags);
|
int conv_to_posix_path (PWCHAR src_path, char *posix_path, int ccp_flags);
|
||||||
|
|
Loading…
Reference in New Issue