summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-06 15:33:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-06 15:33:09 +0200
commit6cfc1f2ff4dbf4ade01828aca2c2d1cd9c3029ea (patch)
treead88d9bf88b0867180ac315f9dc3b1ef67420017 /crawl-ref/source/random.h
parent03bfcc8f827d2330a6d58ce4e1f4b0f971b3ad20 (diff)
downloadcrawl-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/random.h')
-rw-r--r--crawl-ref/source/random.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/crawl-ref/source/random.h b/crawl-ref/source/random.h
index 476a87b6f6..51dd5dd628 100644
--- a/crawl-ref/source/random.h
+++ b/crawl-ref/source/random.h
@@ -118,14 +118,6 @@ void shuffle_array(vector<T> &vec)
shuffle_array(&vec[0], vec.size());
}
-class rng_save_excursion
-{
-public:
- rng_save_excursion(uint32_t seed) { push_rng_state(); seed_rng(seed); }
- rng_save_excursion() { push_rng_state(); }
- ~rng_save_excursion() { pop_rng_state(); }
-};
-
/**
* A defer_rand object represents an infinite tree of random values, allowing
* for a much more functional approach to randomness. defer_rand values which