diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-11 18:58:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-11 18:58:47 +0000 |
commit | 40de55a5569bd175cee6abab2070fa0edfbd8658 (patch) | |
tree | 1e2d766509b07e4d75bcba628a3b1f116c2ef70d /lib/Support/Windows/Path.inc | |
parent | add4c2fbb1c5038337146a04e48d66a3d8bafa6b (diff) |
Remove GetSystemLibraryPaths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index c29b28a2e93..f076cd402ab 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -241,36 +241,6 @@ Path::GetRootDirectory() { return Path("file:///"); } -void -Path::GetSystemLibraryPaths(std::vector<sys::Path>& Paths) { - char buff[MAX_PATH]; - // Generic form of C:\Windows\System32 - HRESULT res = SHGetFolderPathA(NULL, - CSIDL_FLAG_CREATE | CSIDL_SYSTEM, - NULL, - SHGFP_TYPE_CURRENT, - buff); - if (res != S_OK) { - assert(0 && "Failed to get system directory"); - return; - } - Paths.push_back(sys::Path(buff)); - - // Reset buff. - buff[0] = 0; - // Generic form of C:\Windows - res = SHGetFolderPathA(NULL, - CSIDL_FLAG_CREATE | CSIDL_WINDOWS, - NULL, - SHGFP_TYPE_CURRENT, - buff); - if (res != S_OK) { - assert(0 && "Failed to get windows directory"); - return; - } - Paths.push_back(sys::Path(buff)); -} - Path Path::GetUserHomeDirectory() { char buff[MAX_PATH]; |