summaryrefslogtreecommitdiffstats
path: root/asxparser.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-10 02:14:30 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-10 02:35:02 +0200
commitbc1d0ca37d9bdfd69a945043650e0246ffeb5f94 (patch)
tree8269c9cbc1df72afb5715b77669698a0781f6250 /asxparser.c
parentf7cc4152f7c55808c5dd6bbd49c216c9345eb686 (diff)
parente9a5e7f667d1b0c0dec0053ad9ec6f7bc3162b60 (diff)
downloadmpv-bc1d0ca37d9bdfd69a945043650e0246ffeb5f94.tar.bz2
mpv-bc1d0ca37d9bdfd69a945043650e0246ffeb5f94.tar.xz
Merge svn changes up to r30798
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 1cb576b713..2d4677629d 100644
--- a/asxparser.c
+++ b/asxparser.c
@@ -34,53 +34,6 @@
////// 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;