Cleanup: ID management: remove unused old `BKE_libblock_copy_for_localize` function.

This commit is contained in:
Bastien Montagne 2021-08-11 14:49:17 +02:00
parent bbcb60fb22
commit 6a9d7139f7
Notes: blender-bot 2023-02-14 09:48:23 +01:00
Referenced by commit 4f61843a7e, Cleanup: remove *.orig file from 6a9d7139f7
3 changed files with 2217 additions and 10 deletions

View File

@ -152,8 +152,6 @@ void BKE_libblock_copy_ex(struct Main *bmain,
const int orig_flag);
void *BKE_libblock_copy(struct Main *bmain, const struct ID *id) ATTR_WARN_UNUSED_RESULT
ATTR_NONNULL();
/* Special version: used by data-block localization. */
void *BKE_libblock_copy_for_localize(const struct ID *id);
void BKE_libblock_rename(struct Main *bmain, struct ID *id, const char *name) ATTR_NONNULL();
void BLI_libblock_ensure_unique_name(struct Main *bmain, const char *name) ATTR_NONNULL();

View File

@ -1321,14 +1321,6 @@ void *BKE_libblock_copy(Main *bmain, const ID *id)
return idn;
}
/* XXX TODO: get rid of this useless wrapper at some point... */
void *BKE_libblock_copy_for_localize(const ID *id)
{
ID *idn;
BKE_libblock_copy_ex(NULL, id, &idn, LIB_ID_COPY_LOCALIZE | LIB_ID_COPY_NO_ANIMDATA);
return idn;
}
/* ***************** ID ************************ */
ID *BKE_libblock_find_name(struct Main *bmain, const short type, const char *name)
{

File diff suppressed because it is too large Load Diff