Skip to content

Commit e3b11b2

Browse files
refactor: remove dead Diagram.topo_sort() wrapper
Never called — __iter__ and __reversed__ use the module-level topo_sort() directly. No public callers in the codebase. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f77b21a commit e3b11b2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/datajoint/diagram.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,6 @@ def __mul__(self, arg) -> "Diagram":
308308
self.nodes_to_show.intersection_update(arg.nodes_to_show)
309309
return self
310310

311-
def topo_sort(self) -> list[str]:
312-
"""
313-
Return nodes in topological order.
314-
315-
Returns
316-
-------
317-
list[str]
318-
Node names in topological order.
319-
"""
320-
return topo_sort(self)
321-
322311
@classmethod
323312
def cascade(cls, table_expr, part_integrity="enforce"):
324313
"""

0 commit comments

Comments
 (0)