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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-02-04 20:20:53 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-02-05 12:53:16 +0300
commit5123ee74f8b4b19f42b863d7a4917188a75418e0 (patch)
tree54a2a9609d3ef0f61b8ecca419e1a1c109f00abf
parentb6771ccaf6a547ae5463af7102fbe23a621c2bf2 (diff)
Cleanup: Remove old deprecated BKE_libblock_copy_nolib() from BKE_library.
Was not used anymore, time to get rid of it.
-rw-r--r--source/blender/blenkernel/BKE_library.h2
-rw-r--r--source/blender/blenkernel/intern/library.c9
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;