Remove Path::canWrite.
[oota-llvm.git] / lib / Support / Unix / Path.inc
index 658b67460cec5103d68a39e43e0018e294bc9367..fad2697cdb6abbf9108e18affdc5f5f52a114c95 100644 (file)
@@ -324,12 +324,6 @@ Path::isSymLink() const {
   return S_ISLNK(buf.st_mode);
 }
 
-
-bool
-Path::canWrite() const {
-  return 0 == access(path.c_str(), W_OK);
-}
-
 bool
 Path::isRegularFile() const {
   // Get the status so we can determine if it's a file or directory