From a41594e8dfa029cfba9c518d6c21551f5e0857bc Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 24 Apr 2003 09:41:33 +0000 Subject: Remove #if 0'd code and some unused string functions --- linux-core/drm_memory.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'linux-core/drm_memory.h') diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h index 22aab7f4..138de873 100644 --- a/linux-core/drm_memory.h +++ b/linux-core/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; -- cgit v1.2.3