fix 74727

r=yokoyama@netscape.com
remove dead code
This commit is contained in:
ftang%netscape.com 2001-04-04 22:36:30 +00:00
parent 79b013ae7c
commit eb92735f22
9 changed files with 10 additions and 27 deletions

View File

@ -34,8 +34,6 @@ REQUIRES = xpcom string uconv
CPPSRCS = \
nsGB2312ToUnicodeV2.cpp \
nsUnicodeToGB2312V2.cpp \
nsGB2312ToUnicode.cpp \
nsUnicodeToGB2312.cpp \
nsUnicodeToGB2312GL.cpp \
nsGBKToUnicode.cpp \
nsUnicodeToGBK.cpp \

View File

@ -1,4 +1,4 @@
#if 0 // obsoleted code
#ifndef _GBU_TABLE_
#define _GBU_TABLE_
@ -8234,3 +8234,4 @@ typedef struct
extern PRUnichar GBToUnicodeTable[MAX_GB_LENGTH];
#endif /* ifndef _GBU_TABLE_ */
#endif // obsoleted code

View File

@ -32,8 +32,6 @@ DLL=.\$(OBJDIR)\$(DLLNAME).dll
CPPSRCS = \
nsGB2312ToUnicodeV2.cpp \
nsUnicodeToGB2312V2.cpp \
nsGB2312ToUnicode.cpp \
nsUnicodeToGB2312.cpp \
nsUnicodeToGB2312GL.cpp \
nsGBKToUnicode.cpp \
nsUnicodeToGBKNoAscii.cpp \
@ -51,8 +49,6 @@ CPPSRCS = \
CPP_OBJS= \
.\$(OBJDIR)\nsGB2312ToUnicodeV2.obj \
.\$(OBJDIR)\nsUnicodeToGB2312V2.obj \
.\$(OBJDIR)\nsGB2312ToUnicode.obj \
.\$(OBJDIR)\nsUnicodeToGB2312.obj \
.\$(OBJDIR)\nsUnicodeToGB2312GL.obj \
.\$(OBJDIR)\nsGBKToUnicode.obj \
.\$(OBJDIR)\nsUnicodeToGBK.obj \

View File

@ -19,6 +19,7 @@
*
* Contributor(s):
*/
#if 0 // obsoleted code
#include "nsGB2312ToUnicode.h"
#include "nsUCvCnDll.h"
@ -74,3 +75,4 @@ NS_IMETHODIMP nsGB2312ToUnicode::GetMaxLength(const char * aSrc,
*aDestLength = aSrcLength;
return NS_OK_UDEC_EXACTLENGTH;
}
#endif

View File

@ -19,7 +19,7 @@
*
* Contributor(s):
*/
#if 0 // obsolete code
#ifndef nsGB2312ToUnicode_h___
#define nsGB2312ToUnicode_h___
@ -53,3 +53,4 @@ protected:
};
#endif /* nsGB2312ToUnicode_h___ */
#endif

View File

@ -28,8 +28,4 @@
extern "C" PRInt32 g_InstanceCount;
extern "C" PRInt32 g_LockCount;
extern "C" PRUint16 g_AsciiMapping[];
extern "C" PRUint16 g_utGB2312Mapping[];
extern "C" PRUint16 g_ufGB2312Mapping[];
#endif /* nsUCvCnDll_h___ */

View File

@ -45,8 +45,6 @@
#include "nsUnicodeToCP936.h"
#include "nsGB2312ToUnicodeV2.h"
#include "nsUnicodeToGB2312V2.h"
#include "nsGB2312ToUnicode.h"
#include "nsUnicodeToGB2312.h"
#include "nsUnicodeToGB2312GL.h"
//----------------------------------------------------------------------------
@ -60,17 +58,6 @@ static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
PRInt32 g_InstanceCount = 0;
PRInt32 g_LockCount = 0;
PRUint16 g_AsciiMapping[] = {
0x0001, 0x0004, 0x0005, 0x0008, 0x0000, 0x0000, 0x007F, 0x0000
};
PRUint16 g_utGB2312Mapping[] = {
#include "gb2312.ut"
};
PRUint16 g_ufGB2312Mapping[] = {
#include "gb2312.uf"
};
NS_IMPL_NSUCONVERTERREGSELF

View File

@ -19,7 +19,7 @@
*
* Contributor(s):
*/
#if 0 // obsoleted code
#include "nsUnicodeToGB2312.h"
#include "nsUCvCnDll.h"
@ -66,3 +66,4 @@ NS_IMETHODIMP nsUnicodeToGB2312::GetMaxLength(const PRUnichar * aSrc,
*aDestLength = 2 * aSrcLength;
return NS_OK;
}
#endif

View File

@ -19,7 +19,7 @@
*
* Contributor(s):
*/
#if 0 // obsoleted code
#ifndef nsUnicodeToGB2312_h___
#define nsUnicodeToGB2312_h___
@ -53,3 +53,4 @@ protected:
};
#endif /* nsUnicodeToGB2312_h___ */
#endif