diff --git a/xpcom/base/nsTraceRefcnt.cpp b/xpcom/base/nsTraceRefcnt.cpp index 13ba3f7f7871..309cb140cc44 100644 --- a/xpcom/base/nsTraceRefcnt.cpp +++ b/xpcom/base/nsTraceRefcnt.cpp @@ -954,38 +954,6 @@ WalkTheStackSavingLocations(std::vector& aLocations) #endif } -//---------------------------------------------------------------------- - -// This thing is exported by libstdc++ -// Yes, this is a gcc only hack -#if defined(MOZ_DEMANGLE_SYMBOLS) -#include -#include // for free() -#endif // MOZ_DEMANGLE_SYMBOLS - -void -nsTraceRefcnt::DemangleSymbol(const char* aSymbol, - char* aBuffer, - int aBufLen) -{ - NS_ASSERTION(aSymbol, "null symbol"); - NS_ASSERTION(aBuffer, "null buffer"); - NS_ASSERTION(aBufLen >= 32 , "pulled 32 out of you know where"); - - aBuffer[0] = '\0'; - -#if defined(MOZ_DEMANGLE_SYMBOLS) - /* See demangle.h in the gcc source for the voodoo */ - char* demangled = abi::__cxa_demangle(aSymbol, 0, 0, 0); - - if (demangled) { - strncpy(aBuffer, demangled, aBufLen); - free(demangled); - } -#endif // MOZ_DEMANGLE_SYMBOLS -} - - //---------------------------------------------------------------------- EXPORT_XPCOM_API(void) diff --git a/xpcom/base/nsTraceRefcnt.h b/xpcom/base/nsTraceRefcnt.h index a634ebc0e89e..2f3c1e7ebeb9 100644 --- a/xpcom/base/nsTraceRefcnt.h +++ b/xpcom/base/nsTraceRefcnt.h @@ -24,8 +24,6 @@ public: static void ResetStatistics(); - static void DemangleSymbol(const char* aSymbol, char* aBuffer, int aBufLen); - static void WalkTheStack(FILE* aStream); /**