summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xine-utils/utils.c12
-rw-r--r--src/xine-utils/xineutils.h7
2 files changed, 0 insertions, 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
@@ -626,13 +626,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.
*/
const char *xine_get_homedir(void) XINE_PROTECTED;