Bug 1422432 - Remove PrintJSStack(). r=mrbkap
MozReview-Commit-ID: 8ObqjMxAzIR
--- a/js/xpconnect/src/nsXPConnect.cpp
+++ b/js/xpconnect/src/nsXPConnect.cpp
@@ -1127,23 +1127,16 @@ nsXPConnect::ReadFunction(nsIObjectInput
/* These are here to be callable from a debugger */
extern "C" {
JS_EXPORT_API(void) DumpJSStack()
{
xpc_DumpJSStack(true, true, false);
}
-JS_EXPORT_API(const char*) PrintJSStack()
-{
- if (JSContext* cx = nsContentUtils::GetCurrentJSContext())
- return xpc_PrintJSStack(cx, true, true, false).release();
- return "There is no JSContext on the stack.\n";
-}
-
JS_EXPORT_API(void) DumpCompleteHeap()
{
nsCOMPtr<nsICycleCollectorListener> listener =
do_CreateInstance("@mozilla.org/cycle-collector-logger;1");
if (!listener) {
NS_WARNING("Failed to create CC logger");
return;
}