Chromium Code Reviews| Index: third_party/WebKit/Source/platform/wtf/Assertions.cpp |
| diff --git a/third_party/WebKit/Source/platform/wtf/Assertions.cpp b/third_party/WebKit/Source/platform/wtf/Assertions.cpp |
| index 25f7a8dc62f905965e2ff65dc97c0d1e3e37c2cc..58785d66aed2de1c87289861af57c075c7396b03 100644 |
| --- a/third_party/WebKit/Source/platform/wtf/Assertions.cpp |
| +++ b/third_party/WebKit/Source/platform/wtf/Assertions.cpp |
| @@ -128,40 +128,6 @@ static void vprintf_stderr_with_trailing_newline(const char* format, |
| #pragma GCC diagnostic pop |
| #endif |
| -namespace { |
| - |
| -class FrameToNameScope { |
|
Nico
2017/05/03 14:55:35
The last client of this was removed in https://cod
|
| - public: |
| - explicit FrameToNameScope(void*); |
| - ~FrameToNameScope(); |
| - const char* nullableName() { return m_name; } |
| - |
| - private: |
| - const char* m_name; |
| - char* m_cxaDemangled; |
| -}; |
| - |
| -FrameToNameScope::FrameToNameScope(void* addr) : m_name(0), m_cxaDemangled(0) { |
| -#if OS(MACOSX) || (OS(LINUX) && !defined(__UCLIBC__)) |
| - Dl_info info; |
| - if (!dladdr(addr, &info) || !info.dli_sname) |
| - return; |
| - const char* mangledName = info.dli_sname; |
| - if ((m_cxaDemangled = abi::__cxa_demangle(mangledName, 0, 0, 0))) |
| - m_name = m_cxaDemangled; |
| - else |
| - m_name = mangledName; |
| -#else |
| - (void)addr; |
| -#endif |
| -} |
| - |
| -FrameToNameScope::~FrameToNameScope() { |
| - free(m_cxaDemangled); |
| -} |
| - |
| -} // anonymous namespace |
| - |
| #if !LOG_DISABLED |
| namespace WTF { |