changeset 31320:fd78d436d30f

Remove unused function pt_add_gui_file().
author diego
date Sun, 13 Jun 2010 17:15:55 +0000
parents 14bbe725b50e
children 22713e4fde5f
files playtree.c playtree.h
diffstat 2 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/playtree.c	Sun Jun 13 17:10:52 2010 +0000
+++ b/playtree.c	Sun Jun 13 17:15:55 2010 +0000
@@ -939,20 +939,6 @@
   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;
--- a/playtree.h	Sun Jun 13 17:10:52 2010 +0000
+++ b/playtree.h	Sun Jun 13 17:15:55 2010 +0000
@@ -286,13 +286,8 @@
 /// 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);