From 8d53e59e32a3c704f0c42e11370cc7812b71b294 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 20 Apr 2020 11:22:46 +0200 Subject: Cleanup: Remove unnecessary callbacks where default behavior is fine See comments in D7225. --- source/blender/blenkernel/intern/simulation.cc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/simulation.cc b/source/blender/blenkernel/intern/simulation.cc index 5b08bf811cd..a751e376f0f 100644 --- a/source/blender/blenkernel/intern/simulation.cc +++ b/source/blender/blenkernel/intern/simulation.cc @@ -56,17 +56,6 @@ static void simulation_copy_data(Main *UNUSED(bmain), { } -static void simulation_make_local(Main *bmain, ID *id, const int flags) -{ - BKE_lib_id_make_local_generic(bmain, id, flags); -} - -static void simulation_free_data(ID *id) -{ - Simulation *simulation = (Simulation *)id; - BKE_animdata_free(&simulation->id, false); -} - void *BKE_simulation_add(Main *bmain, const char *name) { Simulation *simulation = (Simulation *)BKE_libblock_alloc(bmain, ID_SIM, name, 0); @@ -88,6 +77,6 @@ IDTypeInfo IDType_ID_SIM = { /* init_data */ simulation_init_data, /* copy_data */ simulation_copy_data, - /* free_data */ simulation_free_data, - /* make_local */ simulation_make_local, + /* free_data */ nullptr, + /* make_local */ nullptr, }; -- cgit v1.2.3