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/lib/Support/Unix | |
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/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index e0f0144c14b..ec3eecb2947 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -970,29 +970,6 @@ static bool getDarwinConfDir(bool TempDir, SmallVectorImpl<char> &Result) { return false; } -static bool getUserCacheDir(SmallVectorImpl<char> &Result) { - // First try using XDG_CACHE_HOME env variable, - // as specified in XDG Base Directory Specification at - // http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html - if (const char *XdgCacheDir = std::getenv("XDG_CACHE_HOME")) { - Result.clear(); - Result.append(XdgCacheDir, XdgCacheDir + strlen(XdgCacheDir)); - return true; - } - - // Try Darwin configuration query - if (getDarwinConfDir(false, Result)) - return true; - - // Use "$HOME/.cache" if $HOME is available - if (home_directory(Result)) { - append(Result, ".cache"); - return true; - } - - return false; -} - static const char *getEnvTempDir() { // Check whether the temporary directory is specified by an environment // variable. |