mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Remove dead code.
This commit is contained in:
parent
19e003bc08
commit
180c1b1cfa
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user