Remove the many forms of NS_SetupRegistry since the classes registered are all now part of proper components. r=dougt, jag sr=rpotts b=81527

git-svn-id: svn://10.0.0.236/trunk@110840 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-12-20 02:09:49 +00:00
parent a7cda7ca4d
commit 1604f09dd2
46 changed files with 52 additions and 1513 deletions

View File

@@ -38,6 +38,7 @@
#include <stdio.h>
#include "nsXPCOM.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsCOMPtr.h"
@@ -54,14 +55,6 @@
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
/***************************************************************************/
extern "C" void
NS_SetupRegistry()
{
nsComponentManager::AutoRegister(nsIComponentManagerObsolete::NS_Startup, NULL /* default */);
}
/***************************************************************************/
/* nsTestXPCFoo */
/***************************************************************************/
@@ -503,7 +496,9 @@ main(int argc, char **argv)
if (argc > 1)
numberOfThreads = atoi(argv[1]);
NS_SetupRegistry();
NS_InitXPCOM2(nsnull, nsnull, nsnull);
nsComponentManager::AutoRegister(nsIComponentManagerObsolete::NS_Startup,
NULL /* default */);
static PRThread** threads = (PRThread**) calloc(sizeof(PRThread*), numberOfThreads);