Merge pull request #698 from uis246/cleanup2

Remove unused functions
This commit is contained in:
Timothee "TTimo" Besset 2024-08-18 09:50:27 -05:00 committed by GitHub
commit 270af88f3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 25 deletions

View file

@ -84,15 +84,6 @@ void *SafeMalloc( size_t n, char *desc ){
return p;
}
#if defined( __linux__ ) || defined( __BSD__ ) || defined( __APPLE__ )
void strlwr( char *conv_str ){
int i;
for ( i = 0; i < strlen( conv_str ); i++ )
conv_str[i] = tolower( conv_str[i] );
}
#endif
// set these before calling CheckParm
int myargc;

View file

@ -24,6 +24,10 @@
#define MAXFILES 2048
#if defined( __linux__ ) || defined( __BSD__ ) || defined( __APPLE__ )
#define strlwr strlower
#endif
typedef struct
{
int x;

View file

@ -113,22 +113,6 @@ static char gl_filename[1024];
static void ASE_Process( void );
static void ASE_FreeGeomObject( int ndx );
#if defined( __linux__ ) || defined( __BSD__ ) || defined( __APPLE__ )
static char* strlwr( char* string ){
char *cp;
for ( cp = string; *cp; ++cp )
{
if ( 'A' <= *cp && *cp <= 'Z' ) {
*cp += 'a' - 'A';
}
}
return string;
}
#endif
/*
** ASE_Load
*/