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_lazy_init_cxx.h')
-rw-r--r--source/blender/blenlib/BLI_lazy_init_cxx.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/blenlib/BLI_lazy_init_cxx.h b/source/blender/blenlib/BLI_lazy_init_cxx.h
index 277637520c0..984e29cc1cb 100644
--- a/source/blender/blenlib/BLI_lazy_init_cxx.h
+++ b/source/blender/blenlib/BLI_lazy_init_cxx.h
@@ -62,18 +62,3 @@ void lazy_init_register(std::function<void()> free_func, const char *name);
#define BLI_LAZY_INIT_STATIC(type, func_name) \
static type &func_name(void); \
BLI_LAZY_INIT(type, func_name)
-
-#define BLI_LAZY_INIT_REF(TYPE, NAME) \
- static std::unique_ptr<TYPE> NAME##_impl(void); \
- static TYPE *NAME##_builder(void) \
- { \
- static std::unique_ptr<TYPE> value = NAME##_impl(); \
- BLI::lazy_init_register([]() { delete value.release(); }, #NAME); \
- return value.get(); \
- } \
- TYPE &NAME(void) \
- { \
- static TYPE &value = *NAME##_builder(); \
- return value; \
- } \
- std::unique_ptr<TYPE> NAME##_impl(void)