[Lldb-commits] [lldb] r215300 - Host: remove unused function
Saleem Abdulrasool
compnerd at compnerd.org
Sat Aug 9 15:25:06 PDT 2014
Author: compnerd
Date: Sat Aug 9 17:25:06 2014
New Revision: 215300
URL: http://llvm.org/viewvc/llvm-project?rev=215300&view=rev
Log:
Host: remove unused function
Remove unused static function identified by GCC 4.8.2.
Modified:
lldb/trunk/source/Host/common/FileSpec.cpp
Modified: lldb/trunk/source/Host/common/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/FileSpec.cpp?rev=215300&r1=215299&r2=215300&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/FileSpec.cpp (original)
+++ lldb/trunk/source/Host/common/FileSpec.cpp Sat Aug 9 17:25:06 2014
@@ -55,27 +55,6 @@ GetFileStats (const FileSpec *file_spec,
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
More information about the lldb-commits
mailing list