Host: remove unused function

Remove unused static function identified by GCC 4.8.2.

llvm-svn: 215300
This commit is contained in:
Saleem Abdulrasool 2014-08-09 22:25:06 +00:00
parent b48d1cfa53
commit 1abc1a5e14
1 changed files with 0 additions and 21 deletions

View File

@ -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