@samitouri / QOS-React / commits / 9fc2a3400c

Remove dead code

Dan committed Apr 6, 2019 at 21:36 UTC 9fc2a3400cddbb00448c5e57c10ca349f2b3e4c8
1 file changed -15
src/backend/renderer.js
-15
@@ -810,21 +810,6 @@ export function attach(
810 }
811 }
812
813 - function unmountFiberRecursively(fiber, traverseSiblings = false) {
814 - if (__DEBUG__) {
815 - debug('unmountFiberRecursively()', fiber, traverseSiblings);
816 - }
817 - if (!shouldFilterFiber(fiber)) {
818 - recordUnmount(fiber);
819 - }
820 - if (fiber.child !== null) {
821 - unmountFiberRecursively(fiber.child, true);
822 - }
823 - if (traverseSiblings && fiber.sibling !== null) {
824 - unmountFiberRecursively(fiber.sibling, true);
825 - }
826 - }
827 -
813 function maybeRecordUpdate(fiber: Fiber, hasChildOrderChanged: boolean) {
814 if (__DEBUG__) {
815 debug('maybeRecordUpdate()', fiber);