diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/debug_util.h | 3 | ||||
-rw-r--r-- | base/debug_util_posix.cc | 9 |
2 files changed, 0 insertions, 12 deletions
diff --git a/base/debug_util.h b/base/debug_util.h index 5814781..a7dba3a 100644 --- a/base/debug_util.h +++ b/base/debug_util.h @@ -44,9 +44,6 @@ class StackTrace { // Resolves backtrace to symbols and write to stream. void OutputToStream(std::ostream* os); - // Returns the stacktrace as a string. - std::string AsString(); - private: // From http://msdn.microsoft.com/en-us/library/bb204633.aspx, // the sum of FramesToSkip and FramesToCapture must be less than 63, diff --git a/base/debug_util_posix.cc b/base/debug_util_posix.cc index 7e74aef..7d7aca4 100644 --- a/base/debug_util_posix.cc +++ b/base/debug_util_posix.cc @@ -312,12 +312,3 @@ void StackTrace::OutputToStream(std::ostream* os) { (*os) << "\t" << trace_strings[i] << "\n"; } } - -std::string StackTrace::AsString() { - std::vector<std::string> trace_strings; - std::string output; - GetBacktraceStrings(trace_, count_, &trace_strings, NULL); - for (size_t i = 0; i < trace_strings.size(); ++i) - output += "\t" + trace_strings[i] + "\n"; - return output; -} |