diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-09-18 15:06:16 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-09-18 15:06:16 +0000 |
commit | d4ed32c52673337cabc2a0e9b62513d91d24f379 (patch) | |
tree | fba19657909d74c6e48dbdec75dcca7bcdc83d78 /llvm/unittests/Support/Path.cpp | |
parent | 32e5d8626d006337416ae4a4190bd498e8a5478a (diff) | |
download | bcm5719-llvm-d4ed32c52673337cabc2a0e9b62513d91d24f379.tar.gz bcm5719-llvm-d4ed32c52673337cabc2a0e9b62513d91d24f379.zip |
Remove dead function user_cache_directory()
It's been unused since it was added almost 3 years ago in
https://reviews.llvm.org/D13801
Motivated by https://reviews.llvm.org/rL342002 since it removes one of the
functions keeping a ref to SHGetKnownFolderPath.
Differential Revision: https://reviews.llvm.org/D52184
llvm-svn: 342485
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 02076726b15..851a4af438f 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -347,35 +347,6 @@ TEST(Support, HomeDirectoryWithNoEnv) { } #endif -TEST(Support, UserCacheDirectory) { - SmallString<13> CacheDir; - SmallString<20> CacheDir2; - auto Status = path::user_cache_directory(CacheDir, ""); - EXPECT_TRUE(Status ^ CacheDir.empty()); - - if (Status) { - EXPECT_TRUE(path::user_cache_directory(CacheDir2, "")); // should succeed - EXPECT_EQ(CacheDir, CacheDir2); // and return same paths - - EXPECT_TRUE(path::user_cache_directory(CacheDir, "A", "B", "file.c")); - auto It = path::rbegin(CacheDir); - EXPECT_EQ("file.c", *It); - EXPECT_EQ("B", *++It); - EXPECT_EQ("A", *++It); - auto ParentDir = *++It; - - // Test Unicode: "<user_cache_dir>/(pi)r^2/aleth.0" - EXPECT_TRUE(path::user_cache_directory(CacheDir2, "\xCF\x80r\xC2\xB2", - "\xE2\x84\xB5.0")); - auto It2 = path::rbegin(CacheDir2); - EXPECT_EQ("\xE2\x84\xB5.0", *It2); - EXPECT_EQ("\xCF\x80r\xC2\xB2", *++It2); - auto ParentDir2 = *++It2; - - EXPECT_EQ(ParentDir, ParentDir2); - } -} - TEST(Support, TempDirectory) { SmallString<32> TempDir; path::system_temp_directory(false, TempDir); |