summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-02-18 18:38:26 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 20:41:39 +0200
commit424acaf997cad85aed8a9526d19d8554c80798d3 (patch)
treefe98291e766a42ba46eef3eb31804cb52aaabb31 /src
parentb63cc899aeedd7c6704b30738998591f327afbef (diff)
Refactor: Remove unused magic_power_info_lua() function.
Diffstat (limited to 'src')
-rw-r--r--src/lua_bind.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c
index 0947a01f..721ffe30 100644
--- a/src/lua_bind.c
+++ b/src/lua_bind.c
@@ -20,17 +20,6 @@ magic_power *grab_magic_power(magic_power *m_ptr, int num)
{
return (&m_ptr[num]);
}
-static char *magic_power_info_lua_fct;
-static void magic_power_info_lua(char *p, int power)
-{
- int oldtop = lua_gettop(L);
-
- lua_getglobal(L, magic_power_info_lua_fct);
- tolua_pushnumber(L, power);
- lua_call(L, 1, 1);
- strcpy(p, lua_tostring(L, -1));
- lua_settop(L, oldtop);
-}
bool_ lua_spell_success(magic_power *spell, int stat, char *oups_fct)
{