aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-02-02 02:16:41 +0100
committerWillem Jan Palenstijn2016-02-02 02:16:41 +0100
commitad688f9d6f11e576356fb612e9da9ee66d2e1e6b (patch)
tree82c9022ae239578f2351c74dd1758e0aea6f1510 /engines/sword25/util
parent75f1d2e2596035f603558dced17e64238032ce2c (diff)
downloadscummvm-rg350-ad688f9d6f11e576356fb612e9da9ee66d2e1e6b.tar.gz
scummvm-rg350-ad688f9d6f11e576356fb612e9da9ee66d2e1e6b.tar.bz2
scummvm-rg350-ad688f9d6f11e576356fb612e9da9ee66d2e1e6b.zip
SWORD25: Remove now unused function
Diffstat (limited to 'engines/sword25/util')
-rw-r--r--engines/sword25/util/lua_persistence_util.cpp9
-rw-r--r--engines/sword25/util/lua_persistence_util.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/engines/sword25/util/lua_persistence_util.cpp b/engines/sword25/util/lua_persistence_util.cpp
index 958fb7ac3c..d0192c2e66 100644
--- a/engines/sword25/util/lua_persistence_util.cpp
+++ b/engines/sword25/util/lua_persistence_util.cpp
@@ -280,15 +280,6 @@ void lua_reallocstack(lua_State *L, int newsize) {
correctStack(L, oldstack);
}
-void lua_growstack(lua_State *L, int n) {
- // Double size is enough?
- if (n <= L->stacksize) {
- lua_reallocstack(L, 2 * L->stacksize);
- } else {
- lua_reallocstack(L, L->stacksize + n);
- }
-}
-
void lua_reallocCallInfo(lua_State *lauState, int newsize) {
CallInfo *oldci = lauState->base_ci;
lua_reallocvector(lauState, lauState->base_ci, lauState->size_ci, newsize, CallInfo);
diff --git a/engines/sword25/util/lua_persistence_util.h b/engines/sword25/util/lua_persistence_util.h
index 4d0085e242..e3a2935f2c 100644
--- a/engines/sword25/util/lua_persistence_util.h
+++ b/engines/sword25/util/lua_persistence_util.h
@@ -90,7 +90,6 @@ void unboxUpValue(lua_State *luaState);
size_t appendStackToStack_reverse(lua_State *from, lua_State *to);
void correctStack(lua_State *L, TValue *oldstack);
void lua_reallocstack(lua_State *L, int newsize);
-void lua_growstack(lua_State *L, int n);
void lua_reallocCallInfo(lua_State *lauState, int newsize);