make use of the new removeChildren()
This commit is contained in:
parent
31fa633d74
commit
694426c103
1 changed files with 1 additions and 2 deletions
|
@ -486,8 +486,7 @@ FGInput::_init_joystick ()
|
|||
}
|
||||
|
||||
// get rid of unused config nodes
|
||||
for (unsigned int m = 0; m < js_named.size(); m++)
|
||||
js_nodes->removeChild("js-named", js_named[m]->getIndex(), false);
|
||||
js_nodes->removeChildren("js-named", false);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue