aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.cpp')
-rw-r--r--common/util.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 811140618e..bb7c4ed9ba 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -100,36 +100,6 @@ uint RandomSource::getRandomNumberRng(uint min, uint max) {
return getRandomNumber(max - min) + min;
}
-#pragma mark -
-
-
-StackLock::StackLock(OSystem::MutexRef mutex, OSystem *syst, const char *mutexName)
- : _mutex(mutex), _syst(syst), _mutexName(mutexName) {
- if (syst == 0)
- _syst = g_system;
- lock();
-}
-
-StackLock::~StackLock() {
- unlock();
-}
-
-void StackLock::lock() {
- assert(_syst);
- if (_mutexName != NULL)
- debug(6, "Locking mutex %s", _mutexName);
-
- _syst->lockMutex(_mutex);
-}
-
-void StackLock::unlock() {
- assert(_syst);
- if (_mutexName != NULL)
- debug(6, "Unlocking mutex %s", _mutexName);
-
- _syst->unlockMutex(_mutex);
-}
-
#pragma mark -