remove unused stuff

This commit is contained in:
Garux
2021-09-27 15:12:53 +03:00
parent ecf9a46e78
commit efa324ebe6
11 changed files with 84 additions and 263 deletions

View File

@@ -47,7 +47,6 @@
#define BASEDIRNAME "quake" // assumed to have a 2 or 3 following
#ifdef SAFE_MALLOC
void_ptr safe_malloc( size_t size ){
void *p = malloc( size );
if ( !p ) {
@@ -56,14 +55,6 @@ void_ptr safe_malloc( size_t size ){
return p;
}
void_ptr safe_malloc_info( size_t size, const char* info ){
void *p = malloc( size );
if ( !p ) {
Error( "%s: safe_malloc failed on allocation of %zu bytes", info, size );
}
return p;
}
void_ptr safe_calloc( size_t size ){
void *p = calloc( 1, size );
if ( !p ) {
@@ -72,15 +63,6 @@ void_ptr safe_calloc( size_t size ){
return p;
}
void_ptr safe_calloc_info( size_t size, const char* info ){
void *p = calloc( 1, size );
if ( !p ) {
Error( "%s: safe_calloc failed on allocation of %zu bytes", info, size );
}
return p;
}
#endif
/*
===================