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 global_contexts_; - friend MFContext; public: - template void add_global_context(std::string name, const T *context) - { - global_contexts_.add_new(std::move(name), static_cast(context)); - } }; class MFContext { @@ -41,13 +35,6 @@ class MFContext { MFContext(MFContextBuilder &builder) : builder_(builder) { } - - template 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(context); - } }; } // namespace blender::fn