aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2011-05-17 12:04:27 +0200
committerMax Horn2011-05-17 12:17:28 +0200
commitfc9b8d2a71cee8ad27aa8e390b378c0e46307bd2 (patch)
treed5890ab7e85f9fb4ca6bbfc0bdce4c78650c78ce /common
parentfb31fa2d6af4d68688ea996e329772b11999dc1a (diff)
downloadscummvm-rg350-fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2.tar.gz
scummvm-rg350-fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2.tar.bz2
scummvm-rg350-fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2.zip
COMMON: Remove auxillary RandomSource constructor
Diffstat (limited to 'common')
-rw-r--r--common/random.cpp8
-rw-r--r--common/random.h5
2 files changed, 0 insertions, 13 deletions
diff --git a/common/random.cpp b/common/random.cpp
index be69d39d2d..9ecd5d0892 100644
--- a/common/random.cpp
+++ b/common/random.cpp
@@ -38,14 +38,6 @@ RandomSource::RandomSource(const String &name) {
g_eventRec.registerRandomSource(*this, name);
}
-RandomSource::RandomSource() {
- // Use system time as RNG seed. Normally not a good idea, if you are using
- // a RNG for security purposes, but good enough for our purposes.
- assert(g_system);
- uint32 seed = g_system->getMillis();
- setSeed(seed);
-}
-
RandomSource::~RandomSource() {
// TODO: Unregister with g_eventRec
}
diff --git a/common/random.h b/common/random.h
index 308d8a62b9..ea590f4135 100644
--- a/common/random.h
+++ b/common/random.h
@@ -45,11 +45,6 @@ public:
*/
RandomSource(const String &name);
- // FIXME: This constructor for a nameless randomness source should be removed.
- // I am only adding this temporarily to ease transition to the new
- // system which enforces names for randomness sources.
- RandomSource();
-
~RandomSource();
void setSeed(uint32 seed);