Skip to content

Commit

Permalink
Use pygraph even less
Browse files Browse the repository at this point in the history
  • Loading branch information
seddonym committed Dec 9, 2024
1 parent 551ce74 commit ccd280a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/grimp/adaptors/rustgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ def add_import(
line_number=line_number,
line_contents=line_contents,
)
return self._pygraph.add_import(
self._pygraph.add_import(
importer=importer,
imported=imported,
line_number=line_number,
line_contents=line_contents,
)

def remove_import(self, *, importer: str, imported: str) -> None:
self._rustgraph.remove_import(importer=importer, imported=imported)
# Can't use rust until have the import details working with rust.
return self._pygraph.remove_import(importer=importer, imported=imported)
self._pygraph.remove_import(importer=importer, imported=imported)
return self._rustgraph.remove_import(importer=importer, imported=imported)

def count_imports(self) -> int:
return self._rustgraph.count_imports()
Expand Down Expand Up @@ -148,7 +147,6 @@ def find_illegal_dependencies_for_layers(
raise NoSuchContainer(str(e))

return _layers._dependencies_from_tuple(result)
# return self._pygraph.find_illegal_dependencies_for_layers(layers, containers)

# Dunder methods
# --------------
Expand Down

0 comments on commit ccd280a

Please sign in to comment.