From 4f3db5b5a785511a73282af279d3f30c975944a9 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Mon, 6 Aug 2012 23:23:48 +0000 Subject: mac: Delete some pre-10.5 code. BUG=none Review URL: https://chromiumcodereview.appspot.com/10827175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150171 0039d316-1c4b-4281-b951-d872f2087c98 --- base/debug/stack_trace_posix.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc index 163f471..aef80b3 100644 --- a/base/debug/stack_trace_posix.cc +++ b/base/debug/stack_trace_posix.cc @@ -148,22 +148,12 @@ bool GetBacktraceStrings(void *const *trace, int size, } // namespace StackTrace::StackTrace() { -#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 - if (backtrace == NULL) { - count_ = 0; - return; - } -#endif // Though the backtrace API man page does not list any possible negative // return values, we take no chance. count_ = std::max(backtrace(trace_, arraysize(trace_)), 0); } void StackTrace::PrintBacktrace() const { -#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 - if (backtrace_symbols_fd == NULL) - return; -#endif fflush(stderr); std::vector trace_strings; GetBacktraceStrings(trace_, count_, &trace_strings, NULL); @@ -173,10 +163,6 @@ void StackTrace::PrintBacktrace() const { } void StackTrace::OutputToStream(std::ostream* os) const { -#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 - if (backtrace_symbols == NULL) - return; -#endif std::vector trace_strings; std::string error_message; if (GetBacktraceStrings(trace_, count_, &trace_strings, &error_message)) { -- cgit v1.1