Bug 937157, part 13 - Remove DEBUG_shaver. r=bholley

This commit is contained in:
Andrew McCreight 2013-11-17 14:47:01 -08:00
Родитель 95357dbc3f
Коммит af3fc4429c
1 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -390,9 +390,6 @@ mozJSComponentLoader::ReallyInit()
rv = obsSvc->AddObserver(this, "xpcom-shutdown-loaders", false); rv = obsSvc->AddObserver(this, "xpcom-shutdown-loaders", false);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
#ifdef DEBUG_shaver_off
fprintf(stderr, "mJCL: ReallyInit success!\n");
#endif
mInitialized = true; mInitialized = true;
return NS_OK; return NS_OK;
@ -450,18 +447,11 @@ mozJSComponentLoader::LoadModule(FileLocation &aFile)
getter_AddRefs(cm_holder)); getter_AddRefs(cm_holder));
if (NS_FAILED(rv)) { if (NS_FAILED(rv)) {
#ifdef DEBUG_shaver
fprintf(stderr, "WrapNative(%p,%p,nsIComponentManager) failed: %x\n",
(void *)(JSContext*)cx, (void *)mCompMgr, rv);
#endif
return nullptr; return nullptr;
} }
JSObject* cm_jsobj = cm_holder->GetJSObject(); JSObject* cm_jsobj = cm_holder->GetJSObject();
if (!cm_jsobj) { if (!cm_jsobj) {
#ifdef DEBUG_shaver
fprintf(stderr, "GetJSObject of ComponentManager failed\n");
#endif
return nullptr; return nullptr;
} }
@ -1049,9 +1039,6 @@ mozJSComponentLoader::UnloadModules()
mContext = nullptr; mContext = nullptr;
mRuntimeService = nullptr; mRuntimeService = nullptr;
#ifdef DEBUG_shaver_off
fprintf(stderr, "mJCL: UnloadAll(%d)\n", aWhen);
#endif
} }
NS_IMETHODIMP NS_IMETHODIMP