aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-05 21:19:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-05 21:19:35 +0000
commit01c9d28fece665972c9d355ae738cf3fc73d22d4 (patch)
treed8bd13b5fca19815190b2cbb963917e557706aa2 /lib/Support/Path.cpp
parent200c748a8643cd127271f4d6849da1e147d4442f (diff)
downloadexternal_llvm-01c9d28fece665972c9d355ae738cf3fc73d22d4.tar.gz
external_llvm-01c9d28fece665972c9d355ae738cf3fc73d22d4.tar.bz2
external_llvm-01c9d28fece665972c9d355ae738cf3fc73d22d4.zip
Remove unique_file now that it is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r--lib/Support/Path.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp
index 58c7c96c66..69dd6f5a71 100644
--- a/lib/Support/Path.cpp
+++ b/lib/Support/Path.cpp
@@ -637,23 +637,6 @@ bool is_relative(const Twine &path) {
namespace fs {
-// This is a mkostemps with a different pattern. Unfortunatelly OS X (ond *BSD)
-// don't have it. We should try using mkostemps on systems that have it.
-error_code unique_file(const Twine &Model, int &ResultFD,
- SmallVectorImpl<char> &ResultPath, bool MakeAbsolute,
- unsigned Mode) {
- return createUniqueEntity(Model, ResultFD, ResultPath, MakeAbsolute, Mode,
- FS_File);
-}
-
-// This is a mktemp with a differet pattern. We use createUniqueEntity mostly
-// for consistency. We should try using mktemp.
-error_code unique_file(const Twine &Model, SmallVectorImpl<char> &ResultPath,
- bool MakeAbsolute) {
- int Dummy;
- return createUniqueEntity(Model, Dummy, ResultPath, MakeAbsolute, 0, FS_Name);
-}
-
error_code createUniqueFile(const Twine &Model, int &ResultFd,
SmallVectorImpl<char> &ResultPath, unsigned Mode) {
return createUniqueEntity(Model, ResultFd, ResultPath, false, Mode, FS_File);