[llvm-commits] CVS: llvm/lib/System/Win32/Path.inc
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 1 11:16:21 PDT 2006
Changes in directory llvm/lib/System/Win32:
Path.inc updated: 1.50 -> 1.51
---
Log message:
Remove some now-dead methods. Use getFileStatus instead.
---
Diffs of the changes: (+0 -33)
Path.inc | 33 ---------------------------------
1 files changed, 33 deletions(-)
Index: llvm/lib/System/Win32/Path.inc
diff -u llvm/lib/System/Win32/Path.inc:1.50 llvm/lib/System/Win32/Path.inc:1.51
--- llvm/lib/System/Win32/Path.inc:1.50 Tue Aug 1 12:51:09 2006
+++ llvm/lib/System/Win32/Path.inc Tue Aug 1 13:16:02 2006
@@ -216,39 +216,6 @@
}
// 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 {
More information about the llvm-commits
mailing list