summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2021-05-01 15:41:13 +0300
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2021-05-01 16:07:05 +0300
commit02fbdf8aaffac527ce33c81ace001b48aee9e953 (patch)
tree255eb90976ed7c46390a133ce817edd5d3e5ced5 /player/lua.c
parentf3b2ea9de533ac3ee0ebdaaf6411c97212f5a86b (diff)
downloadmpv-02fbdf8aaffac527ce33c81ace001b48aee9e953.tar.bz2
mpv-02fbdf8aaffac527ce33c81ace001b48aee9e953.tar.xz
scripting (lua/js): utils.getpid: make wrapper of pid property
We now have at least 3 scripting APIs which are trivial wrappers around properties: mp.get_mouse_pos, utils.getcwd, utils.getpid. After some discussion on IRC it was decided that it's easier for us to maintain them as trivial wrappers than to deprecate them and inflict pain on users and script authors, so currently no plan to deprecate.
Diffstat (limited to 'player/lua.c')
-rw-r--r--player/lua.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/player/lua.c b/player/lua.c
index 2eb163ef16..e29bfa36cc 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -45,7 +45,6 @@
#include "osdep/subprocess.h"
#include "osdep/timer.h"
#include "osdep/threads.h"
-#include "osdep/getpid.h"
#include "stream/stream.h"
#include "sub/osd.h"
#include "core.h"
@@ -1146,12 +1145,6 @@ static int script_join_path(lua_State *L)
return 1;
}
-static int script_getpid(lua_State *L)
-{
- lua_pushnumber(L, mp_getpid());
- return 1;
-}
-
static int script_parse_json(lua_State *L, void *tmp)
{
mp_lua_optarg(L, 2);
@@ -1247,7 +1240,6 @@ static const struct fn_entry utils_fns[] = {
FN_ENTRY(file_info),
FN_ENTRY(split_path),
FN_ENTRY(join_path),
- FN_ENTRY(getpid),
AF_ENTRY(parse_json),
AF_ENTRY(format_json),
FN_ENTRY(get_env_list),