From 9c02d6698f852d94736ce3a88e593bf45d22361d Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 21 Dec 2014 23:46:14 +0100 Subject: allowing to store Function objects in Variants, added simple unit test for the Method class --- src/core/common/Variant.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/core/common/Variant.cpp') 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 #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(o); - managed->getManager().addRef(o, nullptr); - ptrVal = managed; -} - -void Variant::destroyObject() -{ - Managed *managed = static_cast(ptrVal); - managed->getManager().deleteRef(managed, nullptr); -} - const char *Variant::getTypeName(Type type) { switch (type) { -- cgit v1.2.3