@@ -13,7 +13,7 @@ public static class NodeExtensions
1313{
1414 /// <summary>
1515 /// Retrieves an autoload from the scene tree using the given name.
16- /// <code >Global global = someNode.GetAutoload<Global>("Global");</code >
16+ /// <c >Global global = someNode.GetAutoload<Global>("Global");</c >
1717 /// </summary>
1818 /// <typeparam name="T">Type of the autoload node, must inherit from Node.</typeparam>
1919 /// <param name="node">Node used to access the current scene tree.</param>
@@ -114,9 +114,7 @@ private static void RecursiveTypeMatchSearch(Node node, Type type, List<Node> no
114114 nodes . Add ( node ) ;
115115
116116 foreach ( Node child in node . GetChildren ( ) )
117- {
118117 RecursiveTypeMatchSearch ( child , type , nodes ) ;
119- }
120118 }
121119
122120 /// <summary>
@@ -252,9 +250,7 @@ private static void FindChildrenOfType<T>(Node node, List<T> children, bool recu
252250
253251 // Continue traversal when recursive mode is enabled.
254252 if ( recursive )
255- {
256253 FindChildrenOfType ( child , children , recursive ) ;
257- }
258254 }
259255 }
260256
@@ -265,9 +261,7 @@ private static void FindChildrenOfType<T>(Node node, List<T> children, bool recu
265261 public static void QueueFreeChildren ( this Node parentNode )
266262 {
267263 foreach ( Node node in parentNode . GetChildren ( ) )
268- {
269264 node . QueueFree ( ) ;
270- }
271265 }
272266
273267 /// <summary>
@@ -279,9 +273,7 @@ public static void RemoveAllGroups(this Node node)
279273 Godot . Collections . Array < StringName > groups = node . GetGroups ( ) ;
280274
281275 for ( int i = 0 ; i < groups . Count ; i ++ )
282- {
283276 node . RemoveFromGroup ( groups [ i ] ) ;
284- }
285277 }
286278
287279 /// <summary>
@@ -296,8 +288,6 @@ public static void TraverseNodes(this Node node, Action<Node> code)
296288
297289 // Recurse into children
298290 foreach ( Node child in node . GetChildren ( ) )
299- {
300291 TraverseNodes ( child , code ) ;
301- }
302292 }
303293}
0 commit comments