[Bf-blender-cvs] [b80585ba309] functions: remove unused code
Jacques Lucke
noreply at git.blender.org
Mon Feb 17 10:45:37 CET 2020
Commit: b80585ba3094286306ccd0b3cf68c5fdd14e7347
Author: Jacques Lucke
Date: Sun Feb 16 12:41:01 2020 +0100
Branches: functions
https://developer.blender.org/rBb80585ba3094286306ccd0b3cf68c5fdd14e7347
remove unused code
===================================================================
M source/blender/functions/FN_multi_function.h
M source/blender/functions/intern/multi_function.cc
===================================================================
diff --git a/source/blender/functions/FN_multi_function.h b/source/blender/functions/FN_multi_function.h
index a96cb66bf97..1283fed8695 100644
--- a/source/blender/functions/FN_multi_function.h
+++ b/source/blender/functions/FN_multi_function.h
@@ -18,39 +18,6 @@ namespace FN {
class MultiFunction;
-class MultiFunctionID {
- private:
- uint32_t m_hash;
-
- public:
- MultiFunctionID(uint32_t hash) : m_hash(hash)
- {
- }
-
- virtual ~MultiFunctionID();
-
- uint32_t hash() const
- {
- return m_hash;
- }
-
- friend bool operator==(const MultiFunctionID &a, const MultiFunctionID &b)
- {
- if (a.hash() != b.hash()) {
- return false;
- }
- return a.is_same(b);
- }
-
- friend bool operator!=(const MultiFunctionID &a, const MultiFunctionID &b)
- {
- return !(a == b);
- }
-
- protected:
- virtual bool is_same(const MultiFunctionID &other) const = 0;
-};
-
struct MFSignatureData {
std::string function_name;
Vector<std::string> param_names;
diff --git a/source/blender/functions/intern/multi_function.cc b/source/blender/functions/intern/multi_function.cc
index f74983ad132..5eac4689dc5 100644
--- a/source/blender/functions/intern/multi_function.cc
+++ b/source/blender/functions/intern/multi_function.cc
@@ -2,8 +2,4 @@
namespace FN {
-MultiFunctionID::~MultiFunctionID()
-{
-}
-
} // namespace FN
More information about the Bf-blender-cvs
mailing list