diff --git a/nsprpub/pr/include/md/_os2.h b/nsprpub/pr/include/md/_os2.h index 9a06d8c5e3c..3539eb6a799 100644 --- a/nsprpub/pr/include/md/_os2.h +++ b/nsprpub/pr/include/md/_os2.h @@ -570,7 +570,6 @@ typedef struct _CONTEXTRECORD { #endif extern APIRET (* APIENTRY QueryThreadContext)(TID, ULONG, PCONTEXTRECORD); -unsigned long _System _DLL_InitTerm( unsigned long mod_handle, unsigned long flag); /* #define _pr_tid (((PTIB2)_getTIBvalue(offsetof(TIB, tib_ptib2)))->tib2_ultid) diff --git a/nsprpub/pr/src/md/os2/os2misc.c b/nsprpub/pr/src/md/os2/os2misc.c index 8a4ae9eb7f6..6e330a03fe6 100644 --- a/nsprpub/pr/src/md/os2/os2misc.c +++ b/nsprpub/pr/src/md/os2/os2misc.c @@ -564,38 +564,3 @@ PRStatus _MD_CloseFileMap(PRFileMap *fmap) return PR_FAILURE; } -/* - * Automatically set apptype switch for interactive and other - * tests that create an invisible plevent window. - */ -unsigned long _System _DLL_InitTerm( unsigned long mod_handle, unsigned long flag) -{ - unsigned long rc = 0; /* failure */ - - if( !flag) - { - /* init */ - if( _CRT_init() == 0) - { - PPIB pPib; - PTIB pTib; - - /* probably superfluous, but can't hurt */ - __ctordtorInit(0); - - DosGetInfoBlocks( &pTib, &pPib); - pPib->pib_ultype = 3; /* PM */ - - rc = 1; - } - } - else - { - __ctordtorTerm(0); - _CRT_term(); - rc = 1; - } - - return rc; -} -