diff options
author | 2016-11-11 14:34:46 +0100 | |
---|---|---|
committer | 2016-11-11 16:12:01 +0100 | |
commit | 7c765ea14785a4ad6efd2e30e03447f354bed6b4 (patch) | |
tree | 8c1e3836d1c907378f61bb5748aac4219af68ce4 /src/devices/cpu/psx/dismips.cpp | |
parent | 5c0edceec3a939ce7804b23beaeebfc700413489 (diff) |
No need for osd_malloc, osd_malloc_array and osd_free (nw)
MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
Diffstat (limited to 'src/devices/cpu/psx/dismips.cpp')
-rw-r--r-- | src/devices/cpu/psx/dismips.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/devices/cpu/psx/dismips.cpp b/src/devices/cpu/psx/dismips.cpp index bfbc3428c94..09b14d9d06b 100644 --- a/src/devices/cpu/psx/dismips.cpp +++ b/src/devices/cpu/psx/dismips.cpp @@ -331,31 +331,3 @@ int main( int argc, char *argv[] ) free (filebuf); return 0; } - -void *osd_malloc_array(size_t size) -{ - return osd_malloc(size); -} - -void *malloc_array_file_line(size_t size, const char *file, int line) -{ - // allocate the memory and fail if we can't - return osd_malloc_array(size); -} - -void free_file_line( void *memory, const char *file, int line ) -{ - osd_free( memory ); -} - -void osd_free( void *memory ) -{ -#undef free - free( memory ); -} - -void *osd_malloc( size_t size ) -{ -#undef malloc - return malloc( size ); -} |