diff options
Diffstat (limited to 'source/blender/blenlib/BLI_optional.hh')
-rw-r--r-- | source/blender/blenlib/BLI_optional.hh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/blenlib/BLI_optional.hh b/source/blender/blenlib/BLI_optional.hh index eac11293781..aeef0e7e151 100644 --- a/source/blender/blenlib/BLI_optional.hh +++ b/source/blender/blenlib/BLI_optional.hh @@ -37,16 +37,6 @@ template<typename T> class Optional { bool m_set; public: - static Optional FromPointer(const T *ptr) - { - if (ptr == nullptr) { - return Optional(); - } - else { - return Optional(*ptr); - } - } - Optional() : m_set(false) { } |