Skip to content

Commit 5898c48

Browse files
committed
Remove unused DocumentationContext.unregister method
1 parent faaa649 commit 5898c48

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Sources/SwiftDocC/Infrastructure/DocumentationContext.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,21 +2626,6 @@ public class DocumentationContext {
26262626
analyzeTopicGraph()
26272627
}
26282628

2629-
/**
2630-
Unregister a documentation bundle with this context and clear any cached resources associated with it.
2631-
*/
2632-
private func unregister(_ bundle: DocumentationBundle) {
2633-
let referencesToRemove = topicGraph.nodes.keys.filter {
2634-
$0.bundleID == bundle.id
2635-
}
2636-
2637-
for reference in referencesToRemove {
2638-
topicGraph.edges[reference]?.removeAll(where: { $0.bundleID == bundle.id })
2639-
topicGraph.reverseEdges[reference]?.removeAll(where: { $0.bundleID == bundle.id })
2640-
topicGraph.nodes[reference] = nil
2641-
}
2642-
}
2643-
26442629
// MARK: - Getting documentation relationships
26452630

26462631
/**

0 commit comments

Comments
 (0)