Remove Path::canWrite.
[oota-llvm.git] / lib / Support / Windows / Path.inc
index 7fe64f68e2fca2b61006b371295b37467420395c..de33fdbc6f3476e777b199c2798c011ba645c1e7 100644 (file)
@@ -243,13 +243,6 @@ Path::isSymLink() const {
   return attributes & FILE_ATTRIBUTE_REPARSE_POINT;
 }
 
-bool
-Path::canWrite() const {
-  // FIXME: take security attributes into account.
-  DWORD attr = GetFileAttributes(path.c_str());
-  return (attr != INVALID_FILE_ATTRIBUTES) && !(attr & FILE_ATTRIBUTE_READONLY);
-}
-
 bool
 Path::canExecute() const {
   // FIXME: take security attributes into account.