summaryrefslogtreecommitdiffstats
path: root/include/astra
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-07-28 16:33:37 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-07-28 16:35:15 +0200
commit53249b3ad63f0d08b9862a75602acf263d230d77 (patch)
tree253975b7ff0fa2623097f6b7cbf78441cc2e0ce0 /include/astra
parent2d110508560a434b23fc03e93019167d1968331d (diff)
downloadastra-53249b3ad63f0d08b9862a75602acf263d230d77.tar.gz
astra-53249b3ad63f0d08b9862a75602acf263d230d77.tar.bz2
astra-53249b3ad63f0d08b9862a75602acf263d230d77.tar.xz
astra-53249b3ad63f0d08b9862a75602acf263d230d77.zip
Remove leftover code from Singleton
Diffstat (limited to 'include/astra')
-rw-r--r--include/astra/Singleton.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/astra/Singleton.h b/include/astra/Singleton.h
index 784c521..9d3c088 100644
--- a/include/astra/Singleton.h
+++ b/include/astra/Singleton.h
@@ -45,11 +45,7 @@ class Singleton {
public:
// constructor
- Singleton() {
- assert(!m_singleton);
- int offset = (uintptr_t)(T*)1 - (uintptr_t)(Singleton<T>*)(T*)1;
- m_singleton = (T*)((uintptr_t)this + offset);
- };
+ Singleton() { }
// destructor
virtual ~Singleton() {