summaryrefslogtreecommitdiff
path: root/src/lua_bind.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-22 09:02:37 +0100
committerBardur Arantsson <bardur@scientician.net>2012-03-29 19:59:22 +0200
commit12661153e56546361be7e002af099fd95b0ac66a (patch)
tree414410712709b0277c6417a2d1ba1d4127d47707 /src/lua_bind.c
parentc6abace58ba0242b9f8565c185ff43d2966f8446 (diff)
Remove unused Lua function corruption_spoiler_generate()
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r--src/lua_bind.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c
index d4751257..0947a01f 100644
--- a/src/lua_bind.c
+++ b/src/lua_bind.c
@@ -413,38 +413,6 @@ void load_map(bool_ full_text, char *name, int *y, int *x)
process_dungeon_file_full = FALSE;
}
-/* Allow lua to use a temporary file */
-static char lua_temp_name[1025];
-static bool_ lua_temp_file_alloc = FALSE;
-void lua_make_temp_file()
-{
- if (lua_temp_file_alloc) return;
-
- if (path_temp(lua_temp_name, 1024)) return;
-
- /* Open a new file */
- hook_file = my_fopen(lua_temp_name, "w");
- lua_temp_file_alloc = TRUE;
-}
-
-void lua_close_temp_file()
-{
- /* Close the file */
- my_fclose(hook_file);
-}
-
-void lua_end_temp_file()
-{
- /* Remove the file */
- fd_kill(lua_temp_name);
- lua_temp_file_alloc = FALSE;
-}
-
-cptr lua_get_temp_name()
-{
- return lua_temp_name;
-}
-
bool_ alloc_room(int by0, int bx0, int ysize, int xsize, int *y1, int *x1, int *y2, int *x2)
{
int xval, yval, x, y;