Unverified Commit d2b66dbf authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Revert "Refactors global key duplication detection (#46183)" (#49847)

This reverts commit 340b193f.
parent 340b193f
......@@ -469,7 +469,6 @@ class _CupertinoAlertRenderElement extends RenderObjectElement {
} else if (_actionsElement == child) {
_actionsElement = null;
}
super.forgetChild(child);
}
@override
......
......@@ -464,7 +464,6 @@ class _CupertinoDialogRenderElement extends RenderObjectElement {
assert(_actionsElement == child);
_actionsElement = null;
}
super.forgetChild(child);
}
@override
......
......@@ -2072,7 +2072,6 @@ class _RenderChipElement extends RenderObjectElement {
final _ChipSlot slot = childToSlot[child];
childToSlot.remove(child);
slotToChild.remove(slot);
super.forgetChild(child);
}
void _mountChild(Widget widget, _ChipSlot slot) {
......
......@@ -1511,7 +1511,6 @@ class _RenderDecorationElement extends RenderObjectElement {
final _DecorationSlot slot = childToSlot[child];
childToSlot.remove(child);
slotToChild.remove(slot);
super.forgetChild(child);
}
void _mountChild(Widget widget, _DecorationSlot slot) {
......
......@@ -992,7 +992,6 @@ class _ListTileElement extends RenderObjectElement {
final _ListTileSlot slot = childToSlot[child];
childToSlot.remove(child);
slotToChild.remove(slot);
super.forgetChild(child);
}
void _mountChild(Widget widget, _ListTileSlot slot) {
......
......@@ -1016,7 +1016,6 @@ class RenderObjectToWidgetElement<T extends RenderObject> extends RootRenderObje
void forgetChild(Element child) {
assert(child == _child);
_child = null;
super.forgetChild(child);
}
@override
......
......@@ -60,7 +60,6 @@ class _LayoutBuilderElement<ConstraintType extends Constraints> extends RenderOb
void forgetChild(Element child) {
assert(child == _child);
_child = null;
super.forgetChild(child);
}
@override
......
......@@ -924,7 +924,6 @@ class ListWheelElement extends RenderObjectElement implements ListWheelChildMana
@override
void forgetChild(Element child) {
_childElements.remove(child.slot);
super.forgetChild(child);
}
}
......
......@@ -1160,7 +1160,6 @@ class SliverMultiBoxAdaptorElement extends RenderObjectElement implements Render
assert(child.slot != null);
assert(_childElements.containsKey(child.slot));
_childElements.remove(child.slot);
super.forgetChild(child);
}
@override
......
......@@ -230,7 +230,6 @@ class _SliverPersistentHeaderElement extends RenderObjectElement {
void forgetChild(Element child) {
assert(child == this.child);
this.child = null;
super.forgetChild(child);
}
@override
......
......@@ -344,7 +344,6 @@ class _TableElement extends RenderObjectElement {
@override
bool forgetChild(Element child) {
_forgottenChildren.add(child);
super.forgetChild(child);
return true;
}
}
......
......@@ -221,6 +221,11 @@ void main() {
class _TestElement extends Element {
_TestElement() : super(const Placeholder());
@override
void forgetChild(Element child) {
// Intentionally left empty.
}
@override
void performRebuild() {
// Intentionally left empty.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment