summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-13 11:03:24 +0000
committerPavel Labath <labath@google.com>2017-02-13 11:03:24 +0000
commit18eeccabf2477b7dbac47d516b143c1951552033 (patch)
treed685cf125b8c6e758bc5093eb9949956fc8973a5 /lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h
parent6302bf6a260ba5fbbd10214a3e23effc535fe6f5 (diff)
downloadbcm5719-llvm-18eeccabf2477b7dbac47d516b143c1951552033.tar.gz
bcm5719-llvm-18eeccabf2477b7dbac47d516b143c1951552033.zip
Remove some dead code from ProcessPOSIXLog
llvm-svn: 294940
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h')
-rw-r--r--lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h b/lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h
index b277349b8d8..3893593c357 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h
+++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h
@@ -40,7 +40,6 @@
#define POSIX_LOG_MEMORY_SHORT_BYTES (4 * sizeof(ptrdiff_t))
class ProcessPOSIXLog {
- static int m_nestinglevel;
static const char *m_pluginname;
public:
@@ -68,35 +67,6 @@ public:
lldb_private::Stream *feedback_strm);
static void ListLogCategories(lldb_private::Stream *strm);
-
- static void LogIf(uint32_t mask, const char *format, ...);
-
- // The following functions can be used to enable the client to limit
- // logging to only the top level function calls. This is useful for
- // recursive functions. FIXME: not thread safe!
- // Example:
- // void NestingFunc() {
- // LogSP log
- // (ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_ALL));
- // if (log)
- // {
- // ProcessPOSIXLog::IncNestLevel();
- // if (ProcessPOSIXLog::AtTopNestLevel())
- // log->Print(msg);
- // }
- // NestingFunc();
- // if (log)
- // ProcessPOSIXLog::DecNestLevel();
- // }
-
- static bool AtTopNestLevel() { return m_nestinglevel == 1; }
-
- static void IncNestLevel() { ++m_nestinglevel; }
-
- static void DecNestLevel() {
- --m_nestinglevel;
- assert(m_nestinglevel >= 0);
- }
};
#endif // liblldb_ProcessPOSIXLog_h_
OpenPOWER on IntegriCloud