mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove unused Path::canRead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -325,11 +325,6 @@ Path::isSymLink() const {
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Path::canRead() const {
|
||||
return 0 == access(path.c_str(), R_OK);
|
||||
}
|
||||
|
||||
bool
|
||||
Path::canWrite() const {
|
||||
return 0 == access(path.c_str(), W_OK);
|
||||
|
@@ -243,13 +243,6 @@ Path::isSymLink() const {
|
||||
return attributes & FILE_ATTRIBUTE_REPARSE_POINT;
|
||||
}
|
||||
|
||||
bool
|
||||
Path::canRead() const {
|
||||
// FIXME: take security attributes into account.
|
||||
DWORD attr = GetFileAttributes(path.c_str());
|
||||
return attr != INVALID_FILE_ATTRIBUTES;
|
||||
}
|
||||
|
||||
bool
|
||||
Path::canWrite() const {
|
||||
// FIXME: take security attributes into account.
|
||||
|
Reference in New Issue
Block a user