Get rid of content_playlist_get* functions

This commit is contained in:
twinaphex 2014-08-15 17:57:06 +02:00
parent b8c5caa749
commit 56540b5af4
2 changed files with 0 additions and 46 deletions

View File

@ -247,42 +247,3 @@ error:
content_playlist_free(playlist);
return NULL;
}
const char* content_playlist_get_path(content_playlist_t *playlist, unsigned index)
{
const char *path, *core_path, *core_name = NULL;
if (!playlist)
return "";
content_playlist_get_index(playlist, index, &path, &core_path, &core_name);
if (path)
return path;
return "";
}
const char *content_playlist_get_core_path(content_playlist_t *playlist, unsigned index)
{
const char *path, *core_path, *core_name = NULL;
if (!playlist)
return "";
content_playlist_get_index(playlist, index, &path, &core_path, &core_name);
if (core_path)
return core_path;
return "";
}
const char *content_playlist_get_core_name(content_playlist_t *playlist, unsigned index)
{
const char *path, *core_path, *core_name = NULL;
if (!playlist)
return "";
content_playlist_get_index(playlist, index, &path, &core_path, &core_name);
if (core_name)
return core_name;
return "";
}

View File

@ -40,13 +40,6 @@ void content_playlist_push(content_playlist_t *playlist,
const char *path, const char *core_path,
const char *core_name);
const char* content_playlist_get_path(content_playlist_t *playlist,
unsigned index);
const char* content_playlist_get_core_path(content_playlist_t *playlist,
unsigned index);
const char* content_playlist_get_core_name(content_playlist_t *playlist,
unsigned index);
#ifdef __cplusplus
}
#endif