@@ -179,8 +179,6 @@ def get_functions_to_optimize(
179179 project_root : Path ,
180180 module_root : Path ,
181181 previous_checkpoint_functions : dict [str , dict [str , str ]] | None = None ,
182- * ,
183- enable_async : bool = False ,
184182) -> tuple [dict [Path , list [FunctionToOptimize ]], int , Path | None ]:
185183 assert sum ([bool (optimize_all ), bool (replay_test ), bool (file )]) <= 1 , (
186184 "Only one of optimize_all, replay_test, or file should be provided"
@@ -248,7 +246,6 @@ def get_functions_to_optimize(
248246 project_root ,
249247 module_root ,
250248 previous_checkpoint_functions ,
251- enable_async = enable_async ,
252249 )
253250
254251 logger .info (f"!lsp|Found { functions_count } function{ 's' if functions_count > 1 else '' } to optimize" )
@@ -658,7 +655,6 @@ def filter_functions(
658655 previous_checkpoint_functions : dict [Path , dict [str , Any ]] | None = None ,
659656 * ,
660657 disable_logs : bool = False ,
661- enable_async : bool = False ,
662658) -> tuple [dict [Path , list [FunctionToOptimize ]], int ]:
663659 filtered_modified_functions : dict [str , list [FunctionToOptimize ]] = {}
664660 blocklist_funcs = get_blocklisted_functions ()
@@ -678,7 +674,6 @@ def filter_functions(
678674 submodule_ignored_paths_count : int = 0
679675 blocklist_funcs_removed_count : int = 0
680676 previous_checkpoint_functions_removed_count : int = 0
681- async_functions_removed_count : int = 0
682677 tests_root_str = str (tests_root )
683678 module_root_str = str (module_root )
684679
@@ -734,15 +729,6 @@ def filter_functions(
734729 functions_tmp .append (function )
735730 _functions = functions_tmp
736731
737- if not enable_async :
738- functions_tmp = []
739- for function in _functions :
740- if function .is_async :
741- async_functions_removed_count += 1
742- continue
743- functions_tmp .append (function )
744- _functions = functions_tmp
745-
746732 filtered_modified_functions [file_path ] = _functions
747733 functions_count += len (_functions )
748734
@@ -756,7 +742,6 @@ def filter_functions(
756742 "Files from ignored submodules" : (submodule_ignored_paths_count , "bright_black" ),
757743 "Blocklisted functions removed" : (blocklist_funcs_removed_count , "bright_red" ),
758744 "Functions skipped from checkpoint" : (previous_checkpoint_functions_removed_count , "green" ),
759- "Async functions removed" : (async_functions_removed_count , "bright_magenta" ),
760745 }
761746 tree = Tree (Text ("Ignored functions and files" , style = "bold" ))
762747 for label , (count , color ) in log_info .items ():
0 commit comments