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

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

index 09ab041b072f9d6f41e9033cd22cd1ebb3dd5c61..4d6064ac01d5d197f40b86cbc977dcc9f17c7f5c 100644 (file)
@@ -434,12 +434,6 @@ namespace sys {
       /// @brief Make the file writable;
       bool makeWriteableOnDisk(std::string* ErrMsg = 0);
 
-      /// This method attempts to make the file referenced by the Path object
-      /// available for execution so that the canExecute() method will return
-      /// true.
-      /// @brief Make the file readable;
-      bool makeExecutableOnDisk(std::string* ErrMsg = 0);
-
       /// This method allows the last modified time stamp and permission bits
       /// to be set on the disk object referenced by the Path.
       /// @throws std::string if an error occurs.
index f154bf62d01749fc8e08fe225e9af47ca3ee3db3..201a7c9a669f27ab248cac720695228ab8986d3a 100644 (file)
@@ -459,12 +459,6 @@ bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
   return false;
 }
 
-bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
-  if (!AddPermissionBits(*this, 0111))
-    return MakeErrMsg(ErrMsg, path + ": can't make file executable");
-  return false;
-}
-
 bool
 Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
   DIR* direntries = ::opendir(path.c_str());
index 413aa94bd699f738c7fe14d2b45d13426732c541..5ee1e0abf8b380b2c613f7c3d4dd1143767b3a87 100644 (file)
@@ -379,11 +379,6 @@ bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
   return false;
 }
 
-bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
-  // All files are executable on Windows (ignoring security attributes).
-  return false;
-}
-
 bool
 Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
   WIN32_FILE_ATTRIBUTE_DATA fi;