[Lldb-commits] [PATCH] Remove dead code

Davide Italiano davide at freebsd.org
Tue Mar 31 23:20:38 PDT 2015


Hi clayborg, zturner,

This code is dead right now. If nobody else is planning to use it, I'd like to remove it. It can be reintroduced if people needs it again.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8761

Files:
  ProcessPOSIX.cpp

Index: ProcessPOSIX.cpp
===================================================================
--- ProcessPOSIX.cpp
+++ ProcessPOSIX.cpp
@@ -36,39 +36,6 @@
 using namespace lldb_private;

 //------------------------------------------------------------------------------
-// Static functions.
-#if 0
-Process*
-ProcessPOSIX::CreateInstance(Target& target, Listener &listener)
-{
-    return new ProcessPOSIX(target, listener);
-}
-
-
-void
-ProcessPOSIX::Initialize()
-{
-    static bool g_initialized = false;
-
-    if (!g_initialized)
-    {
-        g_initialized = true;
-        PluginManager::RegisterPlugin(GetPluginNameStatic(),
-                                      GetPluginDescriptionStatic(),
-                                      CreateInstance);
-
-        Log::Callbacks log_callbacks = {
-            ProcessPOSIXLog::DisableLog,
-            ProcessPOSIXLog::EnableLog,
-            ProcessPOSIXLog::ListLogCategories
-        };
-
-        Log::RegisterLogChannel (ProcessPOSIX::GetPluginNameStatic(), log_callbacks);
-    }
-}
-#endif
-
-//------------------------------------------------------------------------------
 // Constructors and destructors.

 ProcessPOSIX::ProcessPOSIX(Target& target, Listener &listener, UnixSignalsSP &unix_signals_sp)

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8761.23030.patch
Type: text/x-patch
Size: 1268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150401/4cf1cecc/attachment.bin>


More information about the lldb-commits mailing list