Revert "Add vector of cleanup/termination events to be executed before quit"

This reverts commit 8c14f0f30f.

This list is not reliable - there are many ways for fish to quit that does not
invoke these functions. It's also not necessary since the history is correctly
saved on exec.
This commit is contained in:
ridiculousfish
2018-09-28 20:21:23 -04:00
parent a389ca694c
commit a17a815c87
4 changed files with 0 additions and 16 deletions

View File

@@ -466,12 +466,6 @@ int main(int argc, char **argv) {
parser.emit_profiling(s_profiling_output_filename);
}
// since we exit without destructors, we need some way to run cleanup code when necessary
while (!before_exit.empty()) {
before_exit.top()();
before_exit.pop();
}
history_save_all();
proc_destroy();
exit_without_destructors(exit_status);