diff: remove obsolete mode error

Simon Taylor stayl at cs.mu.OZ.AU
Thu Feb 19 09:22:54 AEDT 1998


Estimated hours taken: 0.01

compiler/mode_errors.m
	Remove a mode error type which has not been used since
	we started module qualifying modes of lambda expressions
	in make_hlds.m years ago.


Index: mode_errors.m
===================================================================
RCS file: /home/staff/zs/imp/mercury/compiler/mode_errors.m,v
retrieving revision 1.55
diff -u -r1.55 mode_errors.m
--- mode_errors.m	1998/02/13 10:12:19	1.55
+++ mode_errors.m	1998/02/17 05:27:05
@@ -84,12 +84,9 @@
 			% a conjunction contains one or more unscheduleable
 			% goals; schedule_culprit gives the reason why
 			% they couldn't be scheduled.
-	;	mode_error_final_inst(int, var, inst, inst, final_inst_error)
+	;	mode_error_final_inst(int, var, inst, inst, final_inst_error).
 			% one of the head variables did not have the
 			% expected final inst on exit from the proc
-	;	mode_error_undefined_mode_in_lambda.
-			% This is a dummy error - the actual message
-			% is output by module_qual.m.
 
 :- type schedule_culprit
 	--->	goal_itself_was_impure
@@ -213,7 +210,6 @@
 		ModeInfo) -->
 	report_mode_error_final_inst(ModeInfo, ArgNum, Var, VarInst, Inst,
 		Reason).
-report_mode_error(mode_error_undefined_mode_in_lambda, _ModeInfo) --> [].
 
 %-----------------------------------------------------------------------------%
 



More information about the developers mailing list