@samitouri / QOS-React / commits / 1047980dca

Remove unused context param from `countChildren` (#12787)

Maxim committed May 15, 2018 at 12:18 UTC 1047980dca0830cd55e1622f3fbefc38aeaadb91
1 file changed +1 -1
packages/react/src/ReactChildren.js
+1 -1
@@ -361,7 +361,7 @@ function mapChildren(children, func, context) {
361 * @param {?*} children Children tree container.
362 * @return {number} The number of children.
363 */
364 -function countChildren(children, context) {
364 +function countChildren(children) {
365 return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
366 }
367