From 5123ee74f8b4b19f42b863d7a4917188a75418e0 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 4 Feb 2019 18:20:53 +0100 Subject: Cleanup: Remove old deprecated BKE_libblock_copy_nolib() from BKE_library. Was not used anymore, time to get rid of it. --- source/blender/blenkernel/BKE_library.h | 2 -- source/blender/blenkernel/intern/library.c | 9 --------- 2 files changed, 11 deletions(-) (limited to 'source/blender') 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; -- cgit v1.2.3