diff options
-rw-r--r-- | include/llvm/Support/PathV1.h | 7 | ||||
-rw-r--r-- | lib/Support/Unix/Path.inc | 7 | ||||
-rw-r--r-- | lib/Support/Windows/Path.inc | 15 |
3 files changed, 0 insertions, 29 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index e391d2a1c7..9bce3becf4 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -223,13 +223,6 @@ namespace sys { /// relative. /// @brief Determine if the path is absolute. LLVM_ATTRIBUTE_DEPRECATED( - bool isAbsolute() const, - LLVM_PATH_DEPRECATED_MSG(path::is_absolute)); - - /// This function determines if the path name is absolute, as opposed to - /// relative. - /// @brief Determine if the path is absolute. - LLVM_ATTRIBUTE_DEPRECATED( static bool isAbsolute(const char *NameStart, unsigned NameLen), LLVM_PATH_DEPRECATED_MSG(path::is_absolute)); diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index f604a79849..ea8a050acc 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -117,13 +117,6 @@ Path::isAbsolute(const char *NameStart, unsigned NameLen) { return NameStart[0] == '/'; } -bool -Path::isAbsolute() const { - if (path.empty()) - return false; - return path[0] == '/'; -} - 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 f2029841c5..7cf522d22e 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -168,21 +168,6 @@ Path::isAbsolute(const char *NameStart, unsigned NameLen) { } } -bool -Path::isAbsolute() const { - // FIXME: This does not handle correctly an absolute path starting from - // a drive letter or in UNC format. - switch (path.length()) { - case 0: - return false; - case 1: - case 2: - return path[0] == '/'; - default: - return path[0] == '/' || (path[1] == ':' && path[2] == '/'); - } -} - static Path *TempDirectory; Path |