diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-18 21:10:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-18 21:10:03 +0000 |
commit | 1fbf3a3aca2b7d16a7869ea6c6f39c7ffd28b6d2 (patch) | |
tree | 7985e842343a60a4ea485594d59cff32ca4a2b6f /lib/Support/Windows/Path.inc | |
parent | 68ba1825fcaf94bdf7e057ef19585226ec48ce5d (diff) | |
download | external_llvm-1fbf3a3aca2b7d16a7869ea6c6f39c7ffd28b6d2.zip external_llvm-1fbf3a3aca2b7d16a7869ea6c6f39c7ffd28b6d2.tar.gz external_llvm-1fbf3a3aca2b7d16a7869ea6c6f39c7ffd28b6d2.tar.bz2 |
Remove Path::canWrite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 7 |
1 files changed, 0 insertions, 7 deletions
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()); |