From c6abace58ba0242b9f8565c185ff43d2966f8446 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 22 Feb 2011 18:58:08 +0100 Subject: Remove unused Lua functions stack_{push,pop}. --- lib/core/util.lua | 13 ------------- lib/mods/theme/core/util.lua | 13 ------------- 2 files changed, 26 deletions(-) (limited to 'lib') diff --git a/lib/core/util.lua b/lib/core/util.lua index 997f1eba..5128dfbe 100644 --- a/lib/core/util.lua +++ b/lib/core/util.lua @@ -234,19 +234,6 @@ function msg_format(...) msg_print(call(format, arg)) end --- Stacks -function stack_push(stack, val) - tinsert(stack, val) -end -function stack_pop(stack) - if getn(stack) >= 1 then - return tremove(stack) - else - error("Tried to unstack an empty stack") - return nil - end -end - -- A way to check if the game is now running(as opposed to initialization/character gen) game = {} add_hooks diff --git a/lib/mods/theme/core/util.lua b/lib/mods/theme/core/util.lua index 997f1eba..5128dfbe 100644 --- a/lib/mods/theme/core/util.lua +++ b/lib/mods/theme/core/util.lua @@ -234,19 +234,6 @@ function msg_format(...) msg_print(call(format, arg)) end --- Stacks -function stack_push(stack, val) - tinsert(stack, val) -end -function stack_pop(stack) - if getn(stack) >= 1 then - return tremove(stack) - else - error("Tried to unstack an empty stack") - return nil - end -end - -- A way to check if the game is now running(as opposed to initialization/character gen) game = {} add_hooks -- cgit v1.2.3