summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileSystem.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-10 20:36:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-10 20:36:42 +0000
commit217c714a6779841ae06f420f384b87e12454b1a1 (patch)
treee1f04f8e004152d94b03fea99e9ea66ccd505e72 /include/llvm/Support/FileSystem.h
parentd91c160b0a330ca95e09acc90764160406ecba85 (diff)
downloadllvm-217c714a6779841ae06f420f384b87e12454b1a1.tar.gz
llvm-217c714a6779841ae06f420f384b87e12454b1a1.tar.bz2
llvm-217c714a6779841ae06f420f384b87e12454b1a1.tar.xz
Remove remove_all. A compiler has no need for recursively deleting a directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r--include/llvm/Support/FileSystem.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index bf2e514d40..958e68294b 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -341,22 +341,6 @@ inline error_code remove(const Twine &Path) {
return remove(Path, Existed);
}
-/// @brief Recursively remove all files below \a path, then \a path. Files are
-/// removed as if by POSIX remove().
-///
-/// @param path Input path.
-/// @param num_removed Number of files removed.
-/// @returns errc::success if path has been removed and num_removed has been
-/// successfully set, otherwise a platform specific error_code.
-error_code remove_all(const Twine &path, uint32_t &num_removed);
-
-/// @brief Convenience function for clients that don't need to know how many
-/// files were removed.
-inline error_code remove_all(const Twine &Path) {
- uint32_t Removed;
- return remove_all(Path, Removed);
-}
-
/// @brief Rename \a from to \a to. Files are renamed as if by POSIX rename().
///
/// @param from The path to rename from.