Removing old RegisterComponent calls as these are inbuilt into XPCOM

This commit is contained in:
dp%netscape.com 1999-07-02 03:50:44 +00:00
Родитель a2c7bc4046
Коммит 4bb9484d17
1 изменённых файлов: 0 добавлений и 27 удалений

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

@ -29,8 +29,6 @@
#include "../src/nsInterfaceInfo.h"
static void RegAllocator();
// This file expects the nsInterfaceInfoManager to be able to discover
// .xpt files corresponding to those in xpcom/idl. Currently this
// means setting XPTDIR in the environment to some directory
@ -42,8 +40,6 @@ int main (int argc, char **argv) {
char *name1, *name2, *name3, *name4, *name5, *name6;
nsIInterfaceInfo *info1, *info2, *info3, *info4, *info5, *info6;;
RegAllocator();
nsIInterfaceInfoManager *iim = XPTI_GetInterfaceInfoManager();
fprintf(stderr, "\ngetting iid for 'nsISupports'\n");
@ -126,26 +122,3 @@ int main (int argc, char **argv) {
return 0;
}
// XXX remove following code when allocator autoregisters.
#include "nsRepository.h"
#include "nsIAllocator.h"
static NS_DEFINE_IID(kIAllocatorIID, NS_IALLOCATOR_IID);
static NS_DEFINE_IID(kAllocatorCID, NS_ALLOCATOR_CID);
#ifdef XP_PC
#define XPCOM_DLL "xpcom32.dll"
#else
#ifdef XP_MAC
#define XPCOM_DLL "XPCOM_DLL"
#else
#define XPCOM_DLL "libxpcom"MOZ_DLL_SUFFIX
#endif
#endif
static void RegAllocator()
{
nsRepository::RegisterComponent(kAllocatorCID, NULL, NULL, XPCOM_DLL,
PR_FALSE, PR_FALSE);
}