summaryrefslogtreecommitdiff
path: root/src/lua/bridge.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-12-07 16:57:05 +1100
committerjacqueline <me@jacqueline.id.au>2023-12-07 17:00:30 +1100
commit3f7f199cb940c8d5f6d48f77fd59971adffe49ef (patch)
treeaa22162e46c5e9ccce4c7ee8537b493f437664d9 /src/lua/bridge.cpp
parent009f69c929eb1d1b65d75b0937fbf3b8de5d9148 (diff)
downloadtangara-fw-3f7f199cb940c8d5f6d48f77fd59971adffe49ef.tar.gz
Remove pre-iterator concepts
- No more IndexRecord/Result/dbGetPage nonsense - Queue is just track ids - i am so tired and have so much to do
Diffstat (limited to 'src/lua/bridge.cpp')
-rw-r--r--src/lua/bridge.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lua/bridge.cpp b/src/lua/bridge.cpp
index 070dee98..8d7b4fd0 100644
--- a/src/lua/bridge.cpp
+++ b/src/lua/bridge.cpp
@@ -37,23 +37,8 @@ static auto open_settings_fn(lua_State* state) -> int {
return 0;
}
-static auto open_now_playing_fn(lua_State* state) -> int {
- events::Ui().Dispatch(ui::internal::ShowNowPlaying{});
- return 0;
-}
-
-static auto open_browse_fn(lua_State* state) -> int {
- int index = luaL_checkinteger(state, 1);
- events::Ui().Dispatch(ui::internal::IndexSelected{
- .id = static_cast<uint8_t>(index),
- });
- return 0;
-}
-
static const struct luaL_Reg kLegacyUiFuncs[] = {
{"open_settings", open_settings_fn},
- {"open_now_playing", open_now_playing_fn},
- {"open_browse", open_browse_fn},
{NULL, NULL}};
static auto lua_legacy_ui(lua_State* state) -> int {