diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-02-07 10:20:20 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-02-07 11:04:47 +0100 |
commit | 73f2e386efd84f45920521c2c455c9a210cb5699 (patch) | |
tree | 02bba5607368ed0f2f5b762e254a4b74180cb033 /crawl-ref/source/files.h | |
parent | f00a6218312097c820312e680d7f6b3b1e434a51 (diff) | |
download | crawl-ref-73f2e386efd84f45920521c2c455c9a210cb5699.tar.gz crawl-ref-73f2e386efd84f45920521c2c455c9a210cb5699.zip |
Get rid of SavefileCallback.
They had one legitimate user that could be called from a single place (as
opposed to two callbacks) together with many other similar initializations.
2/3 of code served for compiler/platform differences -- explicitely declared
by the language standard as undefined behaviour.
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r-- | crawl-ref/source/files.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h index 9c5e8df124..38d193f4ae 100644 --- a/crawl-ref/source/files.h +++ b/crawl-ref/source/files.h @@ -139,16 +139,5 @@ private: std::string filename; }; -class SavefileCallback -{ -public: - typedef void (*callback)(bool saving); - - SavefileCallback(callback func); - - static void pre_save(); - static void post_restore(); -}; - FILE *fopen_replace(const char *name); #endif |