aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Unix/Path.inc6
-rw-r--r--lib/Support/Windows/Path.inc7
2 files changed, 0 insertions, 13 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index 658b674..fad2697 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -324,12 +324,6 @@ Path::isSymLink() const {
return S_ISLNK(buf.st_mode);
}
-
-bool
-Path::canWrite() const {
- return 0 == access(path.c_str(), W_OK);
-}
-
bool
Path::isRegularFile() const {
// Get the status so we can determine if it's a file or directory
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 7fe64f6..de33fdb 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -244,13 +244,6 @@ Path::isSymLink() const {
}
bool
-Path::canWrite() const {
- // FIXME: take security attributes into account.
- DWORD attr = GetFileAttributes(path.c_str());
- return (attr != INVALID_FILE_ATTRIBUTES) && !(attr & FILE_ATTRIBUTE_READONLY);
-}
-
-bool
Path::canExecute() const {
// FIXME: take security attributes into account.
DWORD attr = GetFileAttributes(path.c_str());