From 1fbf3a3aca2b7d16a7869ea6c6f39c7ffd28b6d2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 18 Jun 2013 21:10:03 +0000 Subject: Remove Path::canWrite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184235 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Path.inc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/Support/Windows/Path.inc') 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()); -- cgit v1.1