windows: remove unused is_path_dir() function
This commit is contained in:
parent
585b6b7d1f
commit
76709c6b33
11
src/win/fs.c
11
src/win/fs.c
@ -229,17 +229,6 @@ INLINE static void uv_fs_req_init(uv_loop_t* loop, uv_fs_t* req,
|
||||
}
|
||||
|
||||
|
||||
static int is_path_dir(const WCHAR* path) {
|
||||
DWORD attr = GetFileAttributesW(path);
|
||||
|
||||
if (attr != INVALID_FILE_ATTRIBUTES) {
|
||||
return attr & FILE_ATTRIBUTE_DIRECTORY ? 1 : 0;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
INLINE static int fs__readlink_handle(HANDLE handle, char** target_ptr,
|
||||
uint64_t* target_len_ptr) {
|
||||
char buffer[MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user