From f3426a482ea24c399df7c4abaa1ff8f7a9d9dfc8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 18 Jun 2013 20:42:25 +0000 Subject: Remove unused Path::canRead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184229 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Path.inc | 5 ----- lib/Support/Windows/Path.inc | 7 ------- 2 files changed, 12 deletions(-) (limited to 'lib/Support') diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 02f2fb1..658b674 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -326,11 +326,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); } diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 1e453d0..7fe64f6 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -244,13 +244,6 @@ Path::isSymLink() const { } 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. DWORD attr = GetFileAttributes(path.c_str()); -- cgit v1.1