]> git.mxchange.org Git - flightgear.git/commitdiff
make use of the new removeChildren()
authormfranz <mfranz>
Sun, 23 Oct 2005 12:32:15 +0000 (12:32 +0000)
committermfranz <mfranz>
Sun, 23 Oct 2005 12:32:15 +0000 (12:32 +0000)
src/Input/input.cxx

index 2414d984dbb251cb2067de3ea10d9f7a7e7766fc..14aaf5a4fac829303a7a97da6d2a3b7fc2e16808 100644 (file)
@@ -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);
 }