summaryrefslogtreecommitdiffstats
path: root/asxparser.c
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-27 20:50:20 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-27 20:50:20 +0000
commite2a81b9be1dcc84c33dab25078f65da02a3bc972 (patch)
treea50c2ecf55ef61f1a469e4674016ac5e6abc5708 /asxparser.c
parentf05e7aa4b984c907eb7bf090b766ea4392724fbe (diff)
downloadmpv-e2a81b9be1dcc84c33dab25078f65da02a3bc972.tar.bz2
mpv-e2a81b9be1dcc84c33dab25078f65da02a3bc972.tar.xz
Remove unused static functions asx_list_add() and asx_list_remove().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30769 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'asxparser.c')
-rw-r--r--asxparser.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/asxparser.c b/asxparser.c
index 9ea11435ae..6787759805 100644
--- a/asxparser.c
+++ b/asxparser.c
@@ -36,53 +36,6 @@ extern m_config_t* mconfig;
////// List utils
-static void
-asx_list_add(void* list_ptr,void* entry){
- void** list = *(void***)list_ptr;
- int c = 0;
-
- if(list != NULL)
- for( ; list[c] != NULL; c++) ;
-
- list = realloc(list, sizeof(void*) * (c + 2));
-
- list[c] = entry;
- list[c+1] = NULL;
-
- *(void***)list_ptr = list;
-}
-
-
-static void
-asx_list_remove(void* list_ptr,void* entry,ASX_FreeFunc free_func) {
- void** list = *(void***)list_ptr;
- int c,e = -1;
-
- if(list == NULL) return;
-
- for(c = 0 ; list[c] != NULL; c++){
- if(list[c] == entry) e = c;
- }
-
- if(e == -1) return; // Not found
-
- if(free_func != NULL) free_func(list[e]);
-
- if(c == 1) { // Only one entry, we drop all
- free(list);
- *(void**)list_ptr = NULL;
- return;
- }
-
- if(c > e) // If c==e the memmove is not needed
- memmove(list+e,list+e+1,(c-e)*sizeof(void*));
-
- list = realloc(list, (c - 1) * sizeof(void*));
- list[c-1] = NULL;
-
- *(void***)list_ptr = list;
-}
-
void
asx_list_free(void* list_ptr,ASX_FreeFunc free_func) {
void** ptr = *(void***)list_ptr;