[Bf-blender-cvs] [e756b0fea08] master: Cleanup: remove dead code
Jacques Lucke
noreply at git.blender.org
Fri Jan 6 22:30:27 CET 2023
Commit: e756b0fea08c315eb8bea67b3fbb7c34874e9728
Author: Jacques Lucke
Date: Fri Jan 6 22:23:53 2023 +0100
Branches: master
https://developer.blender.org/rBe756b0fea08c315eb8bea67b3fbb7c34874e9728
Cleanup: remove dead code
===================================================================
M source/blender/functions/FN_multi_function_context.hh
===================================================================
diff --git a/source/blender/functions/FN_multi_function_context.hh b/source/blender/functions/FN_multi_function_context.hh
index af5efb4cf88..7452bfced3b 100644
--- a/source/blender/functions/FN_multi_function_context.hh
+++ b/source/blender/functions/FN_multi_function_context.hh
@@ -22,15 +22,9 @@ class MFContext;
class MFContextBuilder {
private:
- Map<std::string, const void *> global_contexts_;
-
friend MFContext;
public:
- template<typename T> void add_global_context(std::string name, const T *context)
- {
- global_contexts_.add_new(std::move(name), static_cast<const void *>(context));
- }
};
class MFContext {
@@ -41,13 +35,6 @@ class MFContext {
MFContext(MFContextBuilder &builder) : builder_(builder)
{
}
-
- template<typename T> const T *get_global_context(StringRef name) const
- {
- const void *context = builder_.global_contexts_.lookup_default_as(name, nullptr);
- /* TODO: Implement type checking. */
- return static_cast<const T *>(context);
- }
};
} // namespace blender::fn
More information about the Bf-blender-cvs
mailing list