mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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