Răsfoiți Sursa

chore(runtime-vapor): remove unused slot fallback carrier helper

daiwei 4 zile în urmă
părinte
comite
d1060d46a1
1 a modificat fișierele cu 0 adăugiri și 33 ștergeri
  1. 0 33
      packages/runtime-vapor/src/fragment.ts

+ 0 - 33
packages/runtime-vapor/src/fragment.ts

@@ -700,39 +700,6 @@ function collectBlockNodes(
   return nodes
   return nodes
 }
 }
 
 
-function collectSlotFallbackCarrierNodes(
-  block: Block,
-  nodes: Node[] = [],
-  includeComments: boolean = false,
-): Node[] {
-  if (block instanceof Node) {
-    if (includeComments || !(block instanceof Comment)) {
-      nodes.push(block)
-    }
-    return nodes
-  }
-
-  if (isVaporComponent(block)) {
-    if (block.block) {
-      collectSlotFallbackCarrierNodes(block.block, nodes, includeComments)
-    }
-    return nodes
-  }
-
-  if (isArray(block)) {
-    for (const child of block) {
-      collectSlotFallbackCarrierNodes(child, nodes, includeComments)
-    }
-    return nodes
-  }
-
-  collectSlotFallbackCarrierNodes(block.nodes, nodes, true)
-  if (block.anchor) {
-    nodes.push(block.anchor)
-  }
-  return nodes
-}
-
 export function insertSlotFallbackCarrier(
 export function insertSlotFallbackCarrier(
   block: Block,
   block: Block,
   parent: ParentNode,
   parent: ParentNode,