From 6cbae0160600086e271904d7339c46f34ff57e73 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 11 Jun 2013 19:13:52 +0000 Subject: [PATCH] Remove GetRootDirectory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183775 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/PathV1.h | 9 --------- lib/Support/Unix/Path.inc | 7 ------- lib/Support/Windows/Path.inc | 8 -------- 3 files changed, 24 deletions(-) diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index fe47a09d742..15f0441d1dc 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -92,15 +92,6 @@ namespace sys { /// @name Constructors /// @{ public: - /// Construct a path to the root directory of the file system. The root - /// directory is a top level directory above which there are no more - /// directories. For example, on UNIX, the root directory is /. On Windows - /// it is file:///. Other operating systems may have different notions of - /// what the root directory is or none at all. In that case, a consistent - /// default root directory will be used. - LLVM_ATTRIBUTE_DEPRECATED(static Path GetRootDirectory(), - LLVM_PATH_DEPRECATED_MSG(NOTHING)); - /// Construct a path to a unique temporary directory that is created in /// a "standard" place for the operating system. The directory is /// guaranteed to be created on exit from this function. If the directory diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index ab9157be99f..e3f20822e51 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -124,13 +124,6 @@ Path::isAbsolute() const { return path[0] == '/'; } -Path -Path::GetRootDirectory() { - Path result; - result.set("/"); - return result; -} - Path Path::GetTemporaryDirectory(std::string *ErrMsg) { #if defined(HAVE_MKDTEMP) diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 1de75487b6c..efbb8b2284e 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -233,14 +233,6 @@ Path::GetTemporaryDirectory(std::string* ErrMsg) { return *TempDirectory; } -// FIXME: the following set of functions don't map to Windows very well. -Path -Path::GetRootDirectory() { - // This is the only notion that that Windows has of a root directory. Nothing - // is here except for drives. - return Path("file:///"); -} - Path Path::GetCurrentDirectory() { char pathname[MAX_PATH];