[m-rev.] diff: Delete unused imports.

Peter Wang novalazy at gmail.com
Tue Mar 29 12:22:02 AEDT 2022


(I assume there is a bug in the unused imports detection.)
---

For some reason, these unused imports are only reported when compiling
with intermodule optimisation enabled.

compiler/call_gen.m:
compiler/rbmm.region_liveness_info.m
    As above.

diff --git a/compiler/call_gen.m b/compiler/call_gen.m
index 97a770802..c0b358dec 100644
--- a/compiler/call_gen.m
+++ b/compiler/call_gen.m
@@ -76,7 +76,6 @@
 :- import_module hlds.hlds_llds.
 :- import_module hlds.hlds_module.
 :- import_module hlds.instmap.
-:- import_module hlds.vartypes.
 :- import_module libs.options.
 :- import_module ll_backend.code_util.
 :- import_module ll_backend.continuation_info.
diff --git a/compiler/rbmm.region_liveness_info.m b/compiler/rbmm.region_liveness_info.m
index b6b244c84..8bb113326 100644
--- a/compiler/rbmm.region_liveness_info.m
+++ b/compiler/rbmm.region_liveness_info.m
@@ -95,7 +95,6 @@
 :- implementation.
 
 :- import_module hlds.arg_info.
-:- import_module hlds.vartypes.
 
 find_input_output_args(ModuleInfo, CalleeProcInfo, Inputs, Outputs) :-
     proc_info_get_headvars(CalleeProcInfo, ArgVars),
-- 
2.31.0



More information about the reviews mailing list