mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Remove unused context param from countChildren (#12787)
This commit is contained in:
@@ -361,7 +361,7 @@ function mapChildren(children, func, context) {
|
||||
* @param {?*} children Children tree container.
|
||||
* @return {number} The number of children.
|
||||
*/
|
||||
function countChildren(children, context) {
|
||||
function countChildren(children) {
|
||||
return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user