[MPlayer-cvslog] r31386 - in trunk: playtree.c playtree.h
diego
subversion at mplayerhq.hu
Sun Jun 13 19:15:55 CEST 2010
Author: diego
Date: Sun Jun 13 19:15:55 2010
New Revision: 31386
Log:
Remove unused function pt_add_gui_file().
Modified:
trunk/playtree.c
trunk/playtree.h
Modified: trunk/playtree.c
==============================================================================
--- trunk/playtree.c Sun Jun 13 19:10:52 2010 (r31385)
+++ trunk/playtree.c Sun Jun 13 19:15:55 2010 (r31386)
@@ -939,20 +939,6 @@ void pt_add_file(play_tree_t** ppt, char
play_tree_set_params_from(entry,pt);
}
-void pt_add_gui_file(play_tree_t** ppt, char* path, char* file)
-{
- char* wholename = malloc(strlen(path)+strlen(file)+2);
-
- if (wholename)
- {
- strcpy(wholename, path);
- strcat(wholename, "/");
- strcat(wholename, file);
- pt_add_file(ppt, wholename);
- free(wholename); // As pt_add_file strdups it anyway!
- }
-}
-
void pt_iter_goto_head(play_tree_iter_t* iter)
{
iter->tree=iter->root;
Modified: trunk/playtree.h
==============================================================================
--- trunk/playtree.h Sun Jun 13 19:10:52 2010 (r31385)
+++ trunk/playtree.h Sun Jun 13 19:15:55 2010 (r31386)
@@ -286,13 +286,8 @@ void pt_iter_replace_entry(play_tree_ite
/// Adds a new file to the playtree, if it is not valid it is created.
void pt_add_file(play_tree_t** ppt, char* filename);
-/// \brief Performs a convert to playtree-syntax, by concat path/file
-/// and performs pt_add_file
-void pt_add_gui_file(play_tree_t** ppt, char* path, char* file);
-
// Two macros to use only the iter and not the other things.
#define pt_iter_add_file(iter, filename) pt_add_file(&iter->tree, filename)
-#define pt_iter_add_gui_file(iter, path, name) pt_add_gui_file(&iter->tree, path, name)
/// Resets the iter and goes back to head.
void pt_iter_goto_head(play_tree_iter_t* iter);
More information about the MPlayer-cvslog
mailing list