Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
#include <stdio.h>
|
||||
#include "nsXPCOM.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsIWebShell.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIComponentManager.h"
|
||||
#include "nsParserCIID.h"
|
||||
|
||||
#ifdef XP_PC
|
||||
#define PARSER_DLL "gkparser.dll"
|
||||
#elif defined(XP_UNIX) || defined(XP_BEOS)
|
||||
#define PARSER_DLL "libhtmlpars"MOZ_DLL_SUFFIX
|
||||
#else
|
||||
#define PARSER_DLL "libraptorhtmlpars"MOZ_DLL_SUFFIX
|
||||
#endif
|
||||
class nsIWebShell;
|
||||
|
||||
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList, nsIWebShell * ww);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
printf("NS_InitXPCOM2 failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
nsVoidArray * gWorkList = new nsVoidArray();
|
||||
if(gWorkList) {
|
||||
int i;
|
||||
@@ -27,9 +23,6 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
static NS_DEFINE_CID(kCParserCID, NS_PARSER_CID);
|
||||
nsComponentManager::RegisterComponent(kCParserCID, NULL, NULL, PARSER_DLL, PR_FALSE, PR_FALSE);
|
||||
|
||||
return DebugRobot(gWorkList, nsnull);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user