From b57d3afb764fffd55d17502075e8f49fdf95f7a1 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 9 Mar 2020 12:21:45 +0100 Subject: Cleanup: CacheFile: Move to IDTypeInfo and remove unused BKE API. --- source/blender/blenkernel/intern/lib_id.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/blender/blenkernel/intern/lib_id.c') diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 22496f47345..fa6996d8701 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -568,9 +568,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags } return true; case ID_CF: - if (!test) { - BKE_cachefile_make_local(bmain, (CacheFile *)id, flags); - } + BLI_assert(0); return true; case ID_WS: case ID_SCR: @@ -772,7 +770,7 @@ bool BKE_id_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int flag) BKE_paint_curve_copy_data(bmain, (PaintCurve *)*r_newid, (PaintCurve *)id, flag); break; case ID_CF: - BKE_cachefile_copy_data(bmain, (CacheFile *)*r_newid, (CacheFile *)id, flag); + BLI_assert(0); break; case ID_SO: BLI_assert(0); @@ -1391,7 +1389,7 @@ void BKE_libblock_init_empty(ID *id) BKE_linestyle_init((FreestyleLineStyle *)id); break; case ID_CF: - BKE_cachefile_init((CacheFile *)id); + BLI_assert(0); break; case ID_KE: /* Shapekeys are a complex topic too - they depend on their 'user' data type... -- cgit v1.2.3