Remove Path::isAbsolute().
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Jun 2013 14:47:33 +0000 (14:47 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Jun 2013 14:47:33 +0000 (14:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183835 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/PathV1.h
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc

index e391d2a1c7dc744d88ed441136952faf9d54da38..9bce3becf46085f558b28c6d2179b86ca4d00fc0 100644 (file)
@@ -219,13 +219,6 @@ namespace sys {
     /// @name Disk Accessors
     /// @{
     public:
-      /// This function determines if the path name is absolute, as opposed to
-      /// 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.
index f604a79849cd95550eae1960bacaaa8163bcec8b..ea8a050accf153eba695845ee4aef6b5c5425e8d 100644 (file)
@@ -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)
index f2029841c58c7c5ed45903fa2ae5abbb11f4f822..7cf522d22ed65f16d8c4129fd8b0e666225da3b3 100644 (file)
@@ -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