diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-01 18:16:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-01 18:16:02 +0000 |
commit | 0d167276dddff2775d120c1a44842e0a3ecd283c (patch) | |
tree | e62198a811ff36b1de2d0788bab5c7a807c26e4e /lib/System/Win32/Path.inc | |
parent | 33b0e9c644838667262f40199b94b20a3524ae4a (diff) | |
download | external_llvm-0d167276dddff2775d120c1a44842e0a3ecd283c.zip external_llvm-0d167276dddff2775d120c1a44842e0a3ecd283c.tar.gz external_llvm-0d167276dddff2775d120c1a44842e0a3ecd283c.tar.bz2 |
Remove some now-dead methods. Use getFileStatus instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Path.inc')
-rw-r--r-- | lib/System/Win32/Path.inc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 73432ba..8bc39f4 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -216,39 +216,6 @@ Path::GetUserHomeDirectory() { } // FIXME: the above set of functions don't map to Windows very well. -bool -Path::isFile() const { - WIN32_FILE_ATTRIBUTE_DATA fi; - BOOL rc = GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi); - if (rc) - return !(fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); - else if (GetLastError() != ERROR_FILE_NOT_FOUND) { - ThrowError("isFile(): " + std::string(path) + ": Can't get status: "); - } - return false; -} - -bool -Path::isDirectory() const { - WIN32_FILE_ATTRIBUTE_DATA fi; - BOOL rc = GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi); - if (rc) - return fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; - else if (GetLastError() != ERROR_FILE_NOT_FOUND) - ThrowError("isDirectory(): " + std::string(path) + ": Can't get status: "); - return false; -} - -bool -Path::isHidden() const { - WIN32_FILE_ATTRIBUTE_DATA fi; - BOOL rc = GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi); - if (rc) - return fi.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN; - else if (GetLastError() != ERROR_FILE_NOT_FOUND) - ThrowError("isHidden(): " + std::string(path) + ": Can't get status: "); - return false; -} bool Path::isRootDirectory() const { |