summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/FileSpec.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-08-09 22:25:06 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-08-09 22:25:06 +0000
commit1abc1a5e14a95cb8164aa5e5d63cb67d69f37c06 (patch)
tree52fd73e2e3f6d526586b858324099f0977dd9aca /lldb/source/Host/common/FileSpec.cpp
parentb48d1cfa5341f54439635bc6ee6ff8e8c3ee6edc (diff)
downloadbcm5719-llvm-1abc1a5e14a95cb8164aa5e5d63cb67d69f37c06.tar.gz
bcm5719-llvm-1abc1a5e14a95cb8164aa5e5d63cb67d69f37c06.zip
Host: remove unused function
Remove unused static function identified by GCC 4.8.2. llvm-svn: 215300
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r--lldb/source/Host/common/FileSpec.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp
index 7a12d2fef55..9ce4e99d769 100644
--- a/lldb/source/Host/common/FileSpec.cpp
+++ b/lldb/source/Host/common/FileSpec.cpp
@@ -55,27 +55,6 @@ GetFileStats (const FileSpec *file_spec, struct stat *stats_ptr)
return false;
}
-#ifdef LLDB_CONFIG_TILDE_RESOLVES_TO_USER
-
-static const char*
-GetCachedGlobTildeSlash()
-{
- static std::string g_tilde;
- if (g_tilde.empty())
- {
- struct passwd *user_entry;
- user_entry = getpwuid(geteuid());
- if (user_entry != NULL)
- g_tilde = user_entry->pw_dir;
-
- if (g_tilde.empty())
- return NULL;
- }
- return g_tilde.c_str();
-}
-
-#endif // #ifdef LLDB_CONFIG_TILDE_RESOLVES_TO_USER
-
// Resolves the username part of a path of the form ~user/other/directories, and
// writes the result into dst_path.
void
OpenPOWER on IntegriCloud