aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r--src/nvim/os/fs.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index e4776999e5..785c79127f 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -270,15 +270,6 @@ bool os_file_exists(const char_u *name)
return os_stat((char *)name, &statbuf);
}
-/// Check if a file is readonly.
-///
-/// @return `true` if `name` is readonly.
-bool os_file_is_readonly(const char *name)
- FUNC_ATTR_NONNULL_ALL
-{
- return access(name, W_OK) != 0;
-}
-
/// Check if a file is readable.
///
/// @return true if `name` is readable, otherwise false.