refactor: remove replaceChild from nodeOps

This commit is contained in:
Evan You
2018-10-02 14:00:29 -04:00
parent adfe0ee7bf
commit dcc3e98937
2 changed files with 0 additions and 14 deletions

View File

@@ -137,15 +137,6 @@ function insertBefore(parent: TestElement, child: TestNode, ref: TestNode) {
child.parentNode = parent
}
function replaceChild(
parent: TestElement,
oldChild: TestNode,
newChild: TestNode
) {
insertBefore(parent, newChild, oldChild)
removeChild(parent, oldChild)
}
function removeChild(parent: TestElement, child: TestNode) {
logNodeOp({
type: NodeOpTypes.REMOVE,
@@ -201,7 +192,6 @@ export const nodeOps = {
setText,
appendChild,
insertBefore,
replaceChild,
removeChild,
clearContent,
parentNode,