summaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-04-24 09:41:33 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-04-24 09:41:33 +0000
commita41594e8dfa029cfba9c518d6c21551f5e0857bc (patch)
treec217c982642b52d7135a800eec75b5df04b759ae /linux-core/drm_memory.h
parent01178567ebc428fcf8eb53a62b5ca9c449980491 (diff)
Remove #if 0'd code and some unused string functions
Diffstat (limited to 'linux-core/drm_memory.h')
-rw-r--r--linux-core/drm_memory.h20
1 files changed, 0 insertions, 20 deletions
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;