File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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
11191117def _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 ))
You can’t perform that action at this time.
0 commit comments