Skip to content

Commit 593eb10

Browse files
committed
chore: remove replace function
1 parent b0d82c8 commit 593eb10

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/runtime-dom/src/nodeOps.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ export const nodeOps: Omit<RendererOptions<Node, Element>, 'patchProp'> = {
1818
}
1919
},
2020

21-
replace: (newChild, oldChild) => {
22-
const parent = oldChild.parentNode
23-
if (parent) {
24-
parent.replaceChild(newChild, oldChild)
25-
}
26-
},
27-
2821
createElement: (tag, isSVG, is, props): Element => {
2922
const el = isSVG
3023
? doc.createElementNS(svgNS, tag)

packages/runtime-test/src/nodeOps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ export const nodeOps = {
236236
insert,
237237
remove,
238238
createElement,
239-
replace,
240239
createText,
241240
createComment,
242241
setText,

0 commit comments

Comments
 (0)