summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-25 23:53:02 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-25 23:53:02 +0100
commite956a16406e27173837118a9453149ca6dfb85b1 (patch)
tree0c756ca57e7fdd6e02dd8a67b5148a59243937ac /crawl-ref/source/files.h
parentc3b6d548cd5c9b3abb738d485ab50b926733aae0 (diff)
downloadcrawl-ref-e956a16406e27173837118a9453149ca6dfb85b1.tar.gz
crawl-ref-e956a16406e27173837118a9453149ca6dfb85b1.zip
Remove sighup_save_and_exit().
As the comment said, every single use of this function was a save-corrupting bug. Too bad, there's one case left: on Unix, HUP will fclose(stdin), which can immediately fail due to fclose() using malloc (free() to be exact), and then it still relies on undefined behaviour which sometimes works only because ncurses does weird things behind our back.
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r--crawl-ref/source/files.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h
index dc0e0e19e6..8e16f386c6 100644
--- a/crawl-ref/source/files.h
+++ b/crawl-ref/source/files.h
@@ -80,8 +80,6 @@ bool get_save_version(reader &file, int &major, int &minor);
bool save_exists(const string& filename);
bool restore_game(const string& filename);
-void sighup_save_and_exit();
-
bool is_existing_level(const level_id &level);
class level_excursion