Cleanup: remove dead code
This commit is contained in:
parent
01efcb3de2
commit
e756b0fea0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue