diff options
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_library.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index 6166760fd30..0050e548064 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -119,8 +119,6 @@ enum { void BKE_libblock_copy_ex(struct Main *bmain, const struct ID *id, struct ID **r_newid, const int flag); void *BKE_libblock_copy(struct Main *bmain, const struct ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); -/* "Deprecated" old API. */ -void *BKE_libblock_copy_nolib(const struct ID *id, const bool do_action) ATTR_NONNULL(); /* Special version. sued by datablock localization. */ void *BKE_libblock_copy_for_localize(const struct ID *id); diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index 1cf07c8c669..74c75b3281f 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -1408,15 +1408,6 @@ void *BKE_libblock_copy(Main *bmain, const ID *id) return idn; } -void *BKE_libblock_copy_nolib(const ID *id, const bool do_action) -{ - ID *idn; - - BKE_libblock_copy_ex(NULL, id, &idn, LIB_ID_CREATE_NO_MAIN | LIB_ID_CREATE_NO_USER_REFCOUNT | (do_action ? LIB_ID_COPY_ACTIONS : 0)); - - return idn; -} - void *BKE_libblock_copy_for_localize(const ID *id) { ID *idn; |