And removes redundant index local variable. Future patches D8296: Feature: NLA: Evaluate Whole NLA Stack in Tweak Mode and D8867: Feature: NLA Merge Strips make use of this function.
No functional changes.
Split from D9247: Refactor: NLA Prep for D8296