Skip to content

Commit 3efdf34

Browse files
committed
Remove unused method
1 parent 75f1a7e commit 3efdf34

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

app/components/primer/alpha/tree_view/tree_view.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -341,19 +341,6 @@ export class TreeViewElement extends HTMLElement {
341341
}
342342
}
343343

344-
toggleCheckedAtPath(path: string[]) {
345-
const node = this.nodeAtPath(path)
346-
if (!node) return
347-
348-
if (this.getNodeType(node) === 'leaf') {
349-
if (this.getNodeCheckedValue(node) === 'true') {
350-
this.uncheckAtPath(path)
351-
} else {
352-
this.checkAtPath(path)
353-
}
354-
}
355-
}
356-
357344
checkedValueAtPath(path: string[]): TreeViewCheckedValue {
358345
const node = this.nodeAtPath(path)
359346
if (!node) return 'false'

0 commit comments

Comments
 (0)