зеркало из https://github.com/mozilla/pjs.git
lose some DEBUG_shaver debugging noise
This commit is contained in:
Родитель
4a149eb5db
Коммит
86577683ba
|
@ -674,9 +674,6 @@ nsComponentManagerImpl::PlatformFind(const nsCID &aCID, nsFactoryEntry* *result)
|
|||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
#ifdef DEBUG_shaver
|
||||
fprintf(stderr, "NEW FACTORYENTRY(%s,%s)\n", library, componentType);
|
||||
#endif
|
||||
nsFactoryEntry *res = new nsFactoryEntry(aCID, library, componentType,
|
||||
loader);
|
||||
if (res == NULL)
|
||||
|
@ -786,9 +783,6 @@ nsresult nsComponentManagerImpl::PlatformPrePopulateRegistry()
|
|||
&componentType)))
|
||||
continue;
|
||||
|
||||
#ifdef DEBUG_shaver
|
||||
fprintf(stderr, "NEW FACTORYENTRY(%s,%s)\n", library, componentType);
|
||||
#endif
|
||||
nsFactoryEntry* entry =
|
||||
/* hand off componentType and library to factory */
|
||||
new nsFactoryEntry(aClass, library, componentType,
|
||||
|
@ -1395,9 +1389,6 @@ nsComponentManagerImpl::RegisterFactory(const nsCID &aClass,
|
|||
return NS_ERROR_FACTORY_EXISTS;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_shaver
|
||||
fprintf(stderr, "NEW FACTORYENTRY(Factory,%s)\n", aProgID);
|
||||
#endif
|
||||
nsFactoryEntry *newEntry = new nsFactoryEntry(aClass, aFactory);
|
||||
if (newEntry == NULL)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
@ -1565,9 +1556,6 @@ nsComponentManagerImpl::RegisterComponentCommon(const nsCID &aClass,
|
|||
goto out;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_shaver
|
||||
fprintf(stderr, "NEW FACTORYENTRY(%s,%s)\n", aRegistryName, aType);
|
||||
#endif
|
||||
/* hand off aRegistryName to entry */
|
||||
newEntry = new nsFactoryEntry(aClass, aRegistryName,
|
||||
nsCRT::strdup(aType),
|
||||
|
|
|
@ -185,19 +185,11 @@ public:
|
|||
|
||||
nsresult rv;
|
||||
if (!loader.get()) {
|
||||
#ifdef DEBUG_shaver
|
||||
fprintf(stderr, "NFE: getting loader for %s\n", type);
|
||||
#endif
|
||||
rv = mgr->GetLoaderForType(type, getter_AddRefs(loader));
|
||||
if(NS_FAILED(rv))
|
||||
return rv;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_shaver
|
||||
char *cidStr = cid.ToString();
|
||||
fprintf(stderr, "NFE: getting factory for %s \n", cidStr);
|
||||
delete [] cidStr;
|
||||
#endif
|
||||
rv = loader->GetFactory(cid, location, type, aFactory);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
factory = do_QueryInterface(*aFactory);
|
||||
|
|
|
@ -65,9 +65,6 @@ private:
|
|||
nsNativeComponentLoader::nsNativeComponentLoader() :
|
||||
mRegistry(nsnull), mCompMgr(nsnull), mDllStore(nsnull)
|
||||
{
|
||||
#ifdef DEBUG_shaver
|
||||
fprintf(stderr, "NEW NATIVECOMPONENTLOADER\n");
|
||||
#endif
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче