diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 15:33:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 15:33:09 +0200 |
commit | 6cfc1f2ff4dbf4ade01828aca2c2d1cd9c3029ea (patch) | |
tree | ad88d9bf88b0867180ac315f9dc3b1ef67420017 /crawl-ref/source/asg.cc | |
parent | 03bfcc8f827d2330a6d58ce4e1f4b0f971b3ad20 (diff) | |
download | crawl-ref-6cfc1f2ff4dbf4ade01828aca2c2d1cd9c3029ea.tar.gz crawl-ref-6cfc1f2ff4dbf4ade01828aca2c2d1cd9c3029ea.zip |
Remove unused code for a RNG stack.
Nothing uses it as a hash anymore; and if it did, you can have more than
one RNG object at once.
Diffstat (limited to 'crawl-ref/source/asg.cc')
-rw-r--r-- | crawl-ref/source/asg.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/crawl-ref/source/asg.cc b/crawl-ref/source/asg.cc index 904d25f0fd..ddf4dbdda5 100644 --- a/crawl-ref/source/asg.cc +++ b/crawl-ref/source/asg.cc @@ -8,7 +8,6 @@ #include "AppHdr.h" #include "asg.h" -#include <stack> static AsgKISS* asg_rng = new AsgKISS(); @@ -59,26 +58,6 @@ AsgKISS::AsgKISS(uint32_t init_key[], int key_length) } } -static stack<AsgKISS*> states; - -void push_asg_state() -{ - AsgKISS* rng = new AsgKISS(*asg_rng); - if (!rng) - return; - states.push(rng); -} - -void pop_asg_state() -{ - if (states.empty()) - return; - - delete asg_rng; - asg_rng = states.top(); - states.pop(); -} - uint32_t get_uint32() { return asg_rng->get_uint32(); |