Skip to content

Commit 1047980

Browse files
maximgatilingaearon
authored andcommitted
Remove unused context param from countChildren (#12787)
1 parent bde4b16 commit 1047980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/ReactChildren.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function mapChildren(children, func, context) {
361361
* @param {?*} children Children tree container.
362362
* @return {number} The number of children.
363363
*/
364-
function countChildren(children, context) {
364+
function countChildren(children) {
365365
return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
366366
}
367367

0 commit comments

Comments
 (0)