summaryrefslogtreecommitdiff
path: root/src/core/common/Function.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Function.hpp')
-rw-r--r--src/core/common/Function.hpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/core/common/Function.hpp b/src/core/common/Function.hpp
index e0d87dd..8113c9d 100644
--- a/src/core/common/Function.hpp
+++ b/src/core/common/Function.hpp
@@ -30,9 +30,6 @@
#include <cassert>
-#include <core/managed/Managed.hpp>
-
-#include "Rtti.hpp"
#include "Variant.hpp"
namespace ousia {
@@ -43,11 +40,12 @@ namespace ousia {
* which an array of Variant is supplied to the function and a Variant is
* returned to the caller.
*/
-class Function : public Managed {
-protected:
- using Managed::Managed;
-
+class Function {
public:
+ Function(const Function&) = delete;
+ Function(Function&&) = delete;
+ virtual ~Function() {};
+
/**
* Abstract function which is meant to call the underlying function (be it
* a host or a script function) with the given arguments.
@@ -87,8 +85,6 @@ private:
const Callback method;
public:
- using Function::Function;
-
/**
* Constructor of the Method class.
*
@@ -117,10 +113,6 @@ public:
}
};
-namespace RttiTypes {
- extern const Rtti<Function> Function;
-}
-
}
#endif /* _OUSIA_FUNCTION_HPP_ */