From 1e4fb4b5b74cbd3fd40ec73876269f5c3bff77dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Wed, 12 Dec 2007 12:30:31 +0100 Subject: Remove xine_xmalloc_aligned() function, to be replaced with av_mallocz(). --- src/xine-utils/utils.c | 12 ------------ src/xine-utils/xineutils.h | 7 ------- 2 files changed, 19 deletions(-) diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index d9eb7fb3f..1c267b800 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -274,18 +274,6 @@ void *xine_xcalloc(size_t nmemb, size_t size) { return ptr; } -void *xine_xmalloc_aligned(size_t alignment, size_t size, void **base) { - - char *ptr; - - *base = ptr = xine_xmalloc (size+alignment); - - while ((size_t) ptr % alignment) - ptr++; - - return ptr; -} - #ifdef WIN32 /* * Parse command line with Windows XP syntax and copy the command (argv[0]). diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index c7cfe980e..c074429ec 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -625,13 +625,6 @@ void *xine_xmalloc(size_t size) XINE_MALLOC XINE_PROTECTED; void *xine_xcalloc(size_t nmemb, size_t size) XINE_MALLOC XINE_PROTECTED; -/* - * Same as above, but memory is aligned to 'alignement'. - * **base is used to return pointer to un-aligned memory, use - * this to free the mem chunk - */ -void *xine_xmalloc_aligned(size_t alignment, size_t size, void **base) XINE_PROTECTED; - /* * Get user home directory. */ -- cgit v1.2.3