From 64f311289a3f6400b460d5ca8834f9ab4f17521e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 29 Nov 2019 12:11:19 +0100 Subject: Cleanup: Remove unused function --- source/blender/blenkernel/BKE_animsys.h | 3 --- source/blender/blenkernel/intern/anim_sys.c | 14 -------------- 2 files changed, 17 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenkernel/BKE_animsys.h b/source/blender/blenkernel/BKE_animsys.h index cacbfe35f2b..74ef529ff6a 100644 --- a/source/blender/blenkernel/BKE_animsys.h +++ b/source/blender/blenkernel/BKE_animsys.h @@ -262,9 +262,6 @@ void BKE_animsys_evaluate_all_animation(struct Main *main, struct Scene *scene, float ctime); -/* TODO(sergey): This is mainly a temp public function. */ -bool BKE_animsys_execute_fcurve(struct PointerRNA *ptr, struct FCurve *fcu, float curval); - /* ------------ Specialized API --------------- */ /* There are a few special tools which require these following functions. They are NOT to be used * for standard animation evaluation UNDER ANY CIRCUMSTANCES! diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c index eea71d52ab6..249f384ceee 100644 --- a/source/blender/blenkernel/intern/anim_sys.c +++ b/source/blender/blenkernel/intern/anim_sys.c @@ -1845,20 +1845,6 @@ static bool animsys_write_rna_setting(PathResolvedRNA *anim_rna, const float val return true; } -/* Simple replacement based data-setting of the FCurve using RNA */ -bool BKE_animsys_execute_fcurve(PointerRNA *ptr, FCurve *fcu, float curval) -{ - PathResolvedRNA anim_rna; - bool ok = false; - - if (animsys_store_rna_setting(ptr, fcu->rna_path, fcu->array_index, &anim_rna)) { - ok = animsys_write_rna_setting(&anim_rna, curval); - } - - /* return whether we were successful */ - return ok; -} - static bool animsys_construct_orig_pointer_rna(const PointerRNA *ptr, PointerRNA *ptr_orig) { *ptr_orig = *ptr; -- cgit v1.2.3