Commit: 5123ee74f8b4b19f42b863d7a4917188a75418e0
Author: Bastien Montagne
Date:   Mon Feb 4 18:20:53 2019 +0100
Branches: master
https://developer.blender.org/rB5123ee74f8b4b19f42b863d7a4917188a75418e0

Cleanup: Remove old deprecated BKE_libblock_copy_nolib() from BKE_library.

Was not used anymore, time to get rid of it.

===================================================================

M       source/blender/blenkernel/BKE_library.h
M       source/blender/blenkernel/intern/library.c

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to