1
0
Fork 0

Merge pull request #100324 from YYF233333/codestyle

Remove dead code in `AnimationNodeStateMachine`
This commit is contained in:
Thaddeus Crews 2024-12-13 16:19:18 -06:00
commit 80ae6fc1ee
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 0 additions and 8 deletions

View File

@ -1579,16 +1579,8 @@ void AnimationNodeStateMachine::remove_transition(const StringName &p_from, cons
void AnimationNodeStateMachine::remove_transition_by_index(const int p_transition) {
ERR_FAIL_INDEX(p_transition, transitions.size());
Transition tr = transitions[p_transition];
transitions.write[p_transition].transition->disconnect("advance_condition_changed", callable_mp(this, &AnimationNodeStateMachine::_tree_changed));
transitions.remove_at(p_transition);
Vector<String> path_from = String(tr.from).split("/");
Vector<String> path_to = String(tr.to).split("/");
List<Vector<String>> paths;
paths.push_back(path_from);
paths.push_back(path_to);
}
void AnimationNodeStateMachine::_remove_transition(const Ref<AnimationNodeStateMachineTransition> p_transition) {