diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-21 23:46:14 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-21 23:46:14 +0100 |
commit | 9c02d6698f852d94736ce3a88e593bf45d22361d (patch) | |
tree | a6c8fbe7e65278fc958d05ded8a6d2c9edf63426 /src/core/common/Variant.cpp | |
parent | 1a7c77c9175c4e9ed5c554b1986d4f2bf8b18197 (diff) |
allowing to store Function objects in Variants, added simple unit test for the Method class
Diffstat (limited to 'src/core/common/Variant.cpp')
-rw-r--r-- | src/core/common/Variant.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/common/Variant.cpp b/src/core/common/Variant.cpp index 8036bcd..0e69038 100644 --- a/src/core/common/Variant.cpp +++ b/src/core/common/Variant.cpp @@ -21,7 +21,6 @@ #include <core/managed/Managed.hpp> #include "Utils.hpp" -#include "Function.hpp" #include "Variant.hpp" namespace ousia { @@ -40,19 +39,6 @@ Variant::TypeException::TypeException(Type actualType, Type requestedType) /* Class Variant */ -void Variant::copyObject(objectType o) -{ - Managed *managed = static_cast<objectType>(o); - managed->getManager().addRef(o, nullptr); - ptrVal = managed; -} - -void Variant::destroyObject() -{ - Managed *managed = static_cast<objectType>(ptrVal); - managed->getManager().deleteRef(managed, nullptr); -} - const char *Variant::getTypeName(Type type) { switch (type) { |