Skip to content

Commit a4801b2

Browse files
committed
Remove unused gatherElementMap
1 parent 4d37415 commit a4801b2

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

packages/debugger/src/structure/walker.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -285,35 +285,6 @@ function pushResolvedElements<TEl extends object>(list: TEl[], value: unknown, e
285285
}
286286
}
287287

288-
/**
289-
* Updates a map of Element to Component_Owner by traversing the owner tree
290-
*
291-
* @param owner owner to start traversal from
292-
* @param eli Element interface
293-
* @param map Optional existing map to update
294-
*
295-
* The elements are resolved shallowly,
296-
* so only top-level elements will be mapped to their components.
297-
*/
298-
export function gatherElementMap(
299-
owner: Solid.Owner,
300-
map: Map<Element, Solid.Component> = new Map(),
301-
eli: ElementInterface<Element>,
302-
): Map<Element, Solid.Component> {
303-
304-
if (markOwnerType(owner) === NodeType.Component) {
305-
for (let el of resolveElements(owner.value, eli)) {
306-
map.set(el, owner as Solid.Component)
307-
}
308-
}
309-
310-
for (let child of owner_each_child(owner)) {
311-
gatherElementMap(child, map, eli)
312-
}
313-
314-
return map
315-
}
316-
317288
function mapChildren<TEl extends object>(
318289
owner: Solid.Owner,
319290
component_id: NodeID | null,

0 commit comments

Comments
 (0)