diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-04-24 09:41:33 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-04-24 09:41:33 +0000 |
commit | a41594e8dfa029cfba9c518d6c21551f5e0857bc (patch) | |
tree | c217c982642b52d7135a800eec75b5df04b759ae /linux/drm_memory.h | |
parent | 01178567ebc428fcf8eb53a62b5ca9c449980491 (diff) |
Remove #if 0'd code and some unused string functions
Diffstat (limited to 'linux/drm_memory.h')
-rw-r--r-- | linux/drm_memory.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/linux/drm_memory.h b/linux/drm_memory.h index 22aab7f4..138de873 100644 --- a/linux/drm_memory.h +++ b/linux/drm_memory.h @@ -178,26 +178,6 @@ void *DRM(realloc)(void *oldpt, size_t oldsize, size_t size, int area) return pt; } -char *DRM(strdup)(const char *s, int area) -{ - char *pt; - int length = s ? strlen(s) : 0; - - if (!(pt = DRM(alloc)(length+1, area))) return NULL; - strcpy(pt, s); - return pt; -} - -void DRM(strfree)(const char *s, int area) -{ - unsigned int size; - - if (!s) return; - - size = 1 + (s ? strlen(s) : 0); - DRM(free)((void *)s, size, area); -} - void DRM(free)(void *pt, size_t size, int area) { int alloc_count; |