Mercurial > mplayer.hg
comparison playtree.c @ 31320:fd78d436d30f
Remove unused function pt_add_gui_file().
author | diego |
---|---|
date | Sun, 13 Jun 2010 17:15:55 +0000 |
parents | 9553ab9ca41c |
children | 253f7779fe98 |
comparison
equal
deleted
inserted
replaced
31319:14bbe725b50e | 31320:fd78d436d30f |
---|---|
937 *ppt=pt; | 937 *ppt=pt; |
938 } | 938 } |
939 play_tree_set_params_from(entry,pt); | 939 play_tree_set_params_from(entry,pt); |
940 } | 940 } |
941 | 941 |
942 void pt_add_gui_file(play_tree_t** ppt, char* path, char* file) | |
943 { | |
944 char* wholename = malloc(strlen(path)+strlen(file)+2); | |
945 | |
946 if (wholename) | |
947 { | |
948 strcpy(wholename, path); | |
949 strcat(wholename, "/"); | |
950 strcat(wholename, file); | |
951 pt_add_file(ppt, wholename); | |
952 free(wholename); // As pt_add_file strdups it anyway! | |
953 } | |
954 } | |
955 | |
956 void pt_iter_goto_head(play_tree_iter_t* iter) | 942 void pt_iter_goto_head(play_tree_iter_t* iter) |
957 { | 943 { |
958 iter->tree=iter->root; | 944 iter->tree=iter->root; |
959 play_tree_iter_step(iter, 0, 0); | 945 play_tree_iter_step(iter, 0, 0); |
960 } | 946 } |