summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 1479396951..4c4ce8c952 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -376,12 +376,6 @@ void sighup_save_and_exit()
{
mpr("Received HUP signal, saved and exited game.", MSGCH_ERROR);
- // Clean up all the hooks.
- for (unsigned i = 0; i < crawl_state.exit_hooks.size(); ++i)
- crawl_state.exit_hooks[i]->restore_state();
-
- crawl_state.exit_hooks.clear();
-
// save_game(true) exits from the game. The "true" is also required
// to save changes to the current level.
save_game(true, "Received HUP signal, saved game.");