Skip to content

Commit f587be8

Browse files
committed
style: cleanup unused code and commentary
1 parent 64801ce commit f587be8

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ape_solidity/compiler.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,6 @@ def compile(
501501
arguments["base_path"] = base_path
502502

503503
if self.project_manager.compiler_cache_folder.is_dir():
504-
# TODO: equivalent of --include-path?
505-
# arguments["include_path"] = self.project_manager.compiler_cache_folder
506504
arguments["allow_paths"] = self.project_manager.compiler_cache_folder
507505

508506
# Allow empty contracts, like Vyper does.
@@ -1118,19 +1116,3 @@ def _import_str_to_source_id(
11181116

11191117
def _try_max(ls: List[Any]):
11201118
return max(ls) if ls else None
1121-
1122-
1123-
def _get_best_relative_path(path: Path, base_paths: List[Path]) -> Path:
1124-
"""Return the first matching relative path to the given base paths"""
1125-
relatives = []
1126-
1127-
for base in base_paths:
1128-
try:
1129-
relatives.append(path.relative_to(base))
1130-
except ValueError:
1131-
continue
1132-
1133-
if not relatives:
1134-
raise ValueError(f"{path} is not a subpath of any given base paths")
1135-
1136-
return min(relatives, key=lambda x: len(x.parts))

0 commit comments

Comments
 (0)