diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-20 12:22:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-20 12:22:55 +0300 |
commit | 8d53e59e32a3c704f0c42e11370cc7812b71b294 (patch) | |
tree | 82b741c8eec7f8d0e7c5344885a1b11d580d60c8 /source/blender/blenkernel/intern/simulation.cc | |
parent | 1b01d10998807b0f0e7276341f8fda0b32df0c7b (diff) |
Cleanup: Remove unnecessary callbacks where default behavior is fine
See comments in D7225.
Diffstat (limited to 'source/blender/blenkernel/intern/simulation.cc')
-rw-r--r-- | source/blender/blenkernel/intern/simulation.cc | 15 |
1 files changed, 2 insertions, 13 deletions
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, }; |