diff --git a/lib/framework/platform.h b/lib/framework/platform.h index f7d939c32..e65fe4d38 100644 --- a/lib/framework/platform.h +++ b/lib/framework/platform.h @@ -48,7 +48,6 @@ # if defined(WZ_CC_MSVC) # define strcasecmp _stricmp # define strncasecmp _strnicmp -# define strlwr _strlwr # define vsnprintf _vsnprintf # define snprintf _snprintf # define fileno _fileno diff --git a/lib/ivis_common/imdload.c b/lib/ivis_common/imdload.c index be1330ade..c3e038228 100644 --- a/lib/ivis_common/imdload.c +++ b/lib/ivis_common/imdload.c @@ -62,22 +62,6 @@ static char *_imd_get_path(char *filename, char *path); BOOL CheckColourKey(iIMDShape *psShape); -#ifndef WIN32 -// convert a string to lower case... by Tim ... dedicated to JS ... with love -void strlwr(char *String) -{ - while (*String != 0) { - // loop around till we reach the end of the zero terminated string - if ((*String >= 'A') && (*String <= 'Z')) { - // if the current letter is in upper case... - *String += ('a'-'A'); // ... convert it to lower case - } - String++; // move to the next letter - } -} -#endif - - static BOOL AtEndOfFile(char *CurPos, char *EndOfFile) { while ((*CurPos==0x09)||(*CurPos==0x0a)||(*CurPos==0x0d)||(*CurPos==0x20)||(*CurPos==0x00)) @@ -120,7 +104,6 @@ iIMDShape *iV_IMDLoad(char *filename, iBool palkeep) iV_DEBUG1("imd[IMDLoad] = loading shape file '%s':",filename); strcpy(_IMD_NAME,filename); - strlwr(_IMD_NAME); _imd_get_path(filename,path); @@ -277,8 +260,6 @@ iIMDShape *iV_ProcessIMD(char **ppFileData, char *FileDataEnd, char *IMDpath, #ifndef PIETOOL // The BSP tool should not reduce the texture page name down (please) // Super scrummy hack to reduce texture page names down to the page id if (bTextured) { - //resToLower(texfile); -// printf("texfile cmp in imdload.c :%s\n", texfile); if (strncasecmp(texfile, "page-", 5) == 0) { for(i = 5; i < (SDWORD)strlen(texfile); i++) { if (!isdigit(texfile[i])) {