From dfcd561ba9087c2a62cb7034c5e661d0b57ad660 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 29 Nov 2021 14:45:56 +0100 Subject: lua: remove mp.suspend, resume and resume_all These functions were deprecated in v0.21.0 and no-ops since v0.23.0. The matching client API functions were removed in the previous commit. --- player/lua.c | 20 -------------------- player/lua/defaults.lua | 3 --- 2 files changed, 23 deletions(-) (limited to 'player') diff --git a/player/lua.c b/player/lua.c index bdb08e304a..64c5d33e6e 100644 --- a/player/lua.c +++ b/player/lua.c @@ -539,23 +539,6 @@ static int script_get_script_directory(lua_State *L) return 0; } -static int script_suspend(lua_State *L) -{ - struct script_ctx *ctx = get_ctx(L); - MP_ERR(ctx, "mp.suspend() is deprecated and does nothing.\n"); - return 0; -} - -static int script_resume(lua_State *L) -{ - return 0; -} - -static int script_resume_all(lua_State *L) -{ - return 0; -} - static void pushnode(lua_State *L, mpv_node *node); static int script_raw_wait_event(lua_State *L, void *tmp) @@ -1220,9 +1203,6 @@ struct fn_entry { static const struct fn_entry main_fns[] = { FN_ENTRY(log), - FN_ENTRY(suspend), - FN_ENTRY(resume), - FN_ENTRY(resume_all), AF_ENTRY(raw_wait_event), FN_ENTRY(request_event), FN_ENTRY(find_config_file), diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index de28409c0e..0643c0b1d9 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -542,9 +542,6 @@ function mp.dispatch_events(allow_wait) end end end - -- Resume playloop - important especially if an error happened while - -- suspended, and the error was handled, but no resume was done. - mp.resume_all() if allow_wait ~= true then return end -- cgit v1.2.3