Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/BLI_optional.hh')
-rw-r--r--source/blender/blenlib/BLI_optional.hh10
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)
{
}