Skip to content

Commit

Permalink
Remove unused returnFiber (#28504)
Browse files Browse the repository at this point in the history
There is no use of `returnFiber` here, it can be removed.

DiffTrain build for commit 64f354c.
  • Loading branch information
kassens committed Mar 6, 2024
1 parent 1750eca commit 40686cd
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<bc3ffb1cb29e8a4af3d060e1e199ebfc>>
* @generated SignedSource<<85c861db7cfef261bb2c4cf3c4163b32>>
*/

"use strict";
Expand Down Expand Up @@ -5307,7 +5307,7 @@ if (__DEV__) {
return null;
}

function mapRemainingChildren(returnFiber, currentFirstChild) {
function mapRemainingChildren(currentFirstChild) {
// Add the remaining children to a temporary map so that we can find them by
// keys quickly. Implicit (null) keys get added to this set with their index
// instead.
Expand Down Expand Up @@ -6087,7 +6087,7 @@ if (__DEV__) {
return resultingFirstChild;
} // Add all children to a key map for quick lookups.

var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.

for (; newIdx < newChildren.length; newIdx++) {
var _newFiber2 = updateFromMap(
Expand Down Expand Up @@ -6307,7 +6307,7 @@ if (__DEV__) {
return resultingFirstChild;
} // Add all children to a key map for quick lookups.

var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.

for (; !step.done; newIdx++, step = newChildren.next()) {
var _newFiber4 = updateFromMap(
Expand Down Expand Up @@ -25736,7 +25736,7 @@ if (__DEV__) {
return root;
}

var ReactVersion = "18.3.0-canary-0066e0b68-20240306";
var ReactVersion = "18.3.0-canary-64f354cf2-20240306";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ae8df36bd7abef975eb0e74298e0e1bb>>
* @generated SignedSource<<0b3d2b1f18482dd826567f1832971cb5>>
*/

"use strict";
Expand Down Expand Up @@ -1533,13 +1533,13 @@ function createChildReconciler(shouldTrackSideEffects) {
(currentFirstChild = currentFirstChild.sibling);
return null;
}
function mapRemainingChildren(returnFiber, currentFirstChild) {
for (returnFiber = new Map(); null !== currentFirstChild; )
function mapRemainingChildren(currentFirstChild) {
for (var existingChildren = new Map(); null !== currentFirstChild; )
null !== currentFirstChild.key
? returnFiber.set(currentFirstChild.key, currentFirstChild)
: returnFiber.set(currentFirstChild.index, currentFirstChild),
? existingChildren.set(currentFirstChild.key, currentFirstChild)
: existingChildren.set(currentFirstChild.index, currentFirstChild),
(currentFirstChild = currentFirstChild.sibling);
return returnFiber;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
fiber = createWorkInProgress(fiber, pendingProps);
Expand Down Expand Up @@ -1888,7 +1888,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return resultingFirstChild;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
newIdx < newChildren.length;
newIdx++
)
Expand Down Expand Up @@ -1976,7 +1976,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
!step.done;
newIdx++, step = newChildrenIterable.next()
)
Expand Down Expand Up @@ -9178,7 +9178,7 @@ var devToolsConfig$jscomp$inline_1014 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-0066e0b68-20240306",
version: "18.3.0-canary-64f354cf2-20240306",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1195 = {
Expand Down Expand Up @@ -9209,7 +9209,7 @@ var internals$jscomp$inline_1195 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-0066e0b68-20240306"
reconcilerVersion: "18.3.0-canary-64f354cf2-20240306"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<468afdc5511d0a33f94018471424df06>>
* @generated SignedSource<<7593cf403d3fbcc1c9b517d40ffc9701>>
*/

"use strict";
Expand Down Expand Up @@ -1553,13 +1553,13 @@ function createChildReconciler(shouldTrackSideEffects) {
(currentFirstChild = currentFirstChild.sibling);
return null;
}
function mapRemainingChildren(returnFiber, currentFirstChild) {
for (returnFiber = new Map(); null !== currentFirstChild; )
function mapRemainingChildren(currentFirstChild) {
for (var existingChildren = new Map(); null !== currentFirstChild; )
null !== currentFirstChild.key
? returnFiber.set(currentFirstChild.key, currentFirstChild)
: returnFiber.set(currentFirstChild.index, currentFirstChild),
? existingChildren.set(currentFirstChild.key, currentFirstChild)
: existingChildren.set(currentFirstChild.index, currentFirstChild),
(currentFirstChild = currentFirstChild.sibling);
return returnFiber;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
fiber = createWorkInProgress(fiber, pendingProps);
Expand Down Expand Up @@ -1908,7 +1908,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return resultingFirstChild;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
newIdx < newChildren.length;
newIdx++
)
Expand Down Expand Up @@ -1996,7 +1996,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
!step.done;
newIdx++, step = newChildrenIterable.next()
)
Expand Down Expand Up @@ -9606,7 +9606,7 @@ var devToolsConfig$jscomp$inline_1056 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-0066e0b68-20240306",
version: "18.3.0-canary-64f354cf2-20240306",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1236 = {
Expand Down Expand Up @@ -9637,7 +9637,7 @@ var internals$jscomp$inline_1236 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-0066e0b68-20240306"
reconcilerVersion: "18.3.0-canary-64f354cf2-20240306"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (__DEV__) {
}
var dynamicFlags = require("ReactNativeInternalFeatureFlags");

var ReactVersion = "18.3.0-canary-0066e0b68-20240306";
var ReactVersion = "18.3.0-canary-64f354cf2-20240306";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,4 +598,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-0066e0b68-20240306";
exports.version = "18.3.0-canary-64f354cf2-20240306";
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-0066e0b68-20240306";
exports.version = "18.3.0-canary-64f354cf2-20240306";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0066e0b68d90cc71a137f26b7c5bf6af73398fc2
64f354cf27a17c4e5b0dfcd908e47940cf947771
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<195b02708667b43e1288d343dd8c9dea>>
* @generated SignedSource<<90dcd25c986913250f107cd684f6e0bf>>
*/

"use strict";
Expand Down Expand Up @@ -9216,7 +9216,7 @@ to return true:wantsResponderID| |
return null;
}

function mapRemainingChildren(returnFiber, currentFirstChild) {
function mapRemainingChildren(currentFirstChild) {
// Add the remaining children to a temporary map so that we can find them by
// keys quickly. Implicit (null) keys get added to this set with their index
// instead.
Expand Down Expand Up @@ -9996,7 +9996,7 @@ to return true:wantsResponderID| |
return resultingFirstChild;
} // Add all children to a key map for quick lookups.

var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.

for (; newIdx < newChildren.length; newIdx++) {
var _newFiber2 = updateFromMap(
Expand Down Expand Up @@ -10216,7 +10216,7 @@ to return true:wantsResponderID| |
return resultingFirstChild;
} // Add all children to a key map for quick lookups.

var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.

for (; !step.done; newIdx++, step = newChildren.next()) {
var _newFiber4 = updateFromMap(
Expand Down Expand Up @@ -28091,7 +28091,7 @@ to return true:wantsResponderID| |
return root;
}

var ReactVersion = "18.3.0-canary-d679cfa2";
var ReactVersion = "18.3.0-canary-2c7f3036";

function createPortal$1(
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<73b775dbdf05bc68c388e7bc468044de>>
* @generated SignedSource<<85e0c72b2b7d0bd1bf1067ea7b661f79>>
*/

"use strict";
Expand Down Expand Up @@ -2960,13 +2960,13 @@ function createChildReconciler(shouldTrackSideEffects) {
(currentFirstChild = currentFirstChild.sibling);
return null;
}
function mapRemainingChildren(returnFiber, currentFirstChild) {
for (returnFiber = new Map(); null !== currentFirstChild; )
function mapRemainingChildren(currentFirstChild) {
for (var existingChildren = new Map(); null !== currentFirstChild; )
null !== currentFirstChild.key
? returnFiber.set(currentFirstChild.key, currentFirstChild)
: returnFiber.set(currentFirstChild.index, currentFirstChild),
? existingChildren.set(currentFirstChild.key, currentFirstChild)
: existingChildren.set(currentFirstChild.index, currentFirstChild),
(currentFirstChild = currentFirstChild.sibling);
return returnFiber;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
fiber = createWorkInProgress(fiber, pendingProps);
Expand Down Expand Up @@ -3315,7 +3315,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return resultingFirstChild;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
newIdx < newChildren.length;
newIdx++
)
Expand Down Expand Up @@ -3403,7 +3403,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
!step.done;
newIdx++, step = newChildrenIterable.next()
)
Expand Down Expand Up @@ -9711,7 +9711,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1059 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-canary-f799fa3f",
version: "18.3.0-canary-4fcd2209",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down Expand Up @@ -9754,7 +9754,7 @@ var internals$jscomp$inline_1284 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-f799fa3f"
reconcilerVersion: "18.3.0-canary-4fcd2209"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1285 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<bc533ae907b7c59bbe5b77cba5df8f95>>
* @generated SignedSource<<cc71037d099328df481a42d35f756a4c>>
*/

"use strict";
Expand Down Expand Up @@ -3085,13 +3085,13 @@ function createChildReconciler(shouldTrackSideEffects) {
(currentFirstChild = currentFirstChild.sibling);
return null;
}
function mapRemainingChildren(returnFiber, currentFirstChild) {
for (returnFiber = new Map(); null !== currentFirstChild; )
function mapRemainingChildren(currentFirstChild) {
for (var existingChildren = new Map(); null !== currentFirstChild; )
null !== currentFirstChild.key
? returnFiber.set(currentFirstChild.key, currentFirstChild)
: returnFiber.set(currentFirstChild.index, currentFirstChild),
? existingChildren.set(currentFirstChild.key, currentFirstChild)
: existingChildren.set(currentFirstChild.index, currentFirstChild),
(currentFirstChild = currentFirstChild.sibling);
return returnFiber;
return existingChildren;
}
function useFiber(fiber, pendingProps) {
fiber = createWorkInProgress(fiber, pendingProps);
Expand Down Expand Up @@ -3440,7 +3440,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return resultingFirstChild;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
newIdx < newChildren.length;
newIdx++
)
Expand Down Expand Up @@ -3528,7 +3528,7 @@ function createChildReconciler(shouldTrackSideEffects) {
return iteratorFn;
}
for (
oldFiber = mapRemainingChildren(returnFiber, oldFiber);
oldFiber = mapRemainingChildren(oldFiber);
!step.done;
newIdx++, step = newChildrenIterable.next()
)
Expand Down Expand Up @@ -10413,7 +10413,7 @@ var roots = new Map(),
devToolsConfig$jscomp$inline_1137 = {
findFiberByHostInstance: getInstanceFromNode,
bundleType: 0,
version: "18.3.0-canary-3a92e945",
version: "18.3.0-canary-51750c0a",
rendererPackageName: "react-native-renderer",
rendererConfig: {
getInspectorDataForInstance: getInspectorDataForInstance,
Expand Down Expand Up @@ -10469,7 +10469,7 @@ var roots = new Map(),
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-3a92e945"
reconcilerVersion: "18.3.0-canary-51750c0a"
});
exports.createPortal = function (children, containerTag) {
return createPortal$1(
Expand Down
Loading

0 comments on commit 40686cd

Please sign in to comment.