From 40b76de2d77e66b70a9d4bf989c3f5340919973f Mon Sep 17 00:00:00 2001 From: Roberto I Date: Wed, 3 Jun 2026 11:58:39 -0300 Subject: [PATCH] Removed unused function 'luaD_inctop' Commit 3228a97 removed all its uses. --- ldo.c | 6 ------ ldo.h | 1 - 2 files changed, 7 deletions(-) diff --git a/ldo.c b/ldo.c index 1f18b186..fe8bf20f 100644 --- a/ldo.c +++ b/ldo.c @@ -430,12 +430,6 @@ void luaD_shrinkstack (lua_State *L) { luaE_shrinkCI(L); /* shrink CI list */ } - -void luaD_inctop (lua_State *L) { - L->top.p++; - luaD_checkstack(L, 1); -} - /* }================================================================== */ diff --git a/ldo.h b/ldo.h index 2b3b0db4..85a00e38 100644 --- a/ldo.h +++ b/ldo.h @@ -88,7 +88,6 @@ LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres); LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror); LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); LUAI_FUNC void luaD_shrinkstack (lua_State *L); -LUAI_FUNC void luaD_inctop (lua_State *L); LUAI_FUNC int luaD_checkminstack (lua_State *L); LUAI_FUNC void luaD_anchorobj (lua_State *L, Table *anchor, GCObject *obj);