summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-12 12:30:31 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-12 12:30:31 +0100
commit1e4fb4b5b74cbd3fd40ec73876269f5c3bff77dd (patch)
treec0fbf7f68762bac8d6ab552bdd864292308391e9 /src
parent2de3756752386d6b0b09ec5b8a51c0c2a2a8d805 (diff)
downloadxine-lib-1e4fb4b5b74cbd3fd40ec73876269f5c3bff77dd.tar.gz
xine-lib-1e4fb4b5b74cbd3fd40ec73876269f5c3bff77dd.tar.bz2
Remove xine_xmalloc_aligned() function, to be replaced with av_mallocz().
Diffstat (limited to 'src')
-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;