Skip to content

Commit bc06817

Browse files
committed
Prune portals (#4667)
1 parent b046f52 commit bc06817

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compat/src/portals.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,9 @@ function Portal(props) {
3939
nodeType: 1,
4040
parentNode: container,
4141
childNodes: [],
42-
// Technically this isn't needed
43-
appendChild(child) {
44-
this.childNodes.push(child);
45-
_this._container.appendChild(child);
46-
},
4742
insertBefore(child, before) {
4843
this.childNodes.push(child);
4944
_this._container.insertBefore(child, before);
50-
},
51-
removeChild(child) {
52-
this.childNodes.splice(this.childNodes.indexOf(child) >>> 1, 1);
53-
_this._container.removeChild(child);
5445
}
5546
};
5647
}

0 commit comments

Comments
 (0)