mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
playlist: Remove playlist_add()
It was only used in filetree.c. It's still implemented in Lua so scripts using rb.playlist_add() won't break, but has been removed from the Lua API "backend". Change-Id: I5625a47f0692456008c6b10dee14755151d22f29
This commit is contained in:
parent
129fb4016b
commit
9ba51e3552
8 changed files with 14 additions and 28 deletions
|
@ -317,13 +317,13 @@ RB_WRAP(splash_scroller)
|
|||
RB_WRAP(playlist)
|
||||
{
|
||||
/* just passes NULL to work with the current playlist */
|
||||
enum e_playlist {PLAYL_AMOUNT = 0, PLAYL_ADD, PLAYL_CREATE,
|
||||
enum e_playlist {PLAYL_AMOUNT = 0, PLAYL_CREATE,
|
||||
PLAYL_START, PLAYL_RESUMETRACK, PLAYL_RESUME,
|
||||
PLAYL_SHUFFLE, PLAYL_SYNC, PLAYL_REMOVEALLTRACKS,
|
||||
PLAYL_INSERTTRACK, PLAYL_INSERTDIRECTORY, PLAYL_INSERTPLAYL,
|
||||
PLAYL_ECOUNT};
|
||||
|
||||
const char *playlist_option[] = {"amount", "add", "create", "start", "resume_track",
|
||||
const char *playlist_option[] = {"amount", "create", "start", "resume_track",
|
||||
"resume", "shuffle", "sync", "remove_all_tracks",
|
||||
"insert_track", "insert_directory", "insert_playlist", NULL};
|
||||
|
||||
|
@ -339,10 +339,6 @@ RB_WRAP(playlist)
|
|||
case PLAYL_AMOUNT:
|
||||
result = rb->playlist_amount();
|
||||
break;
|
||||
case PLAYL_ADD:
|
||||
filename = luaL_checkstring(L, 2);
|
||||
result = rb->playlist_add(filename);
|
||||
break;
|
||||
case PLAYL_CREATE:
|
||||
dir = luaL_checkstring(L, 2);
|
||||
filename = luaL_checkstring(L, 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue