@@ -3323,13 +3323,6 @@ package body Checks is
Bad_Value (Warn => SPARK_Mode = On);
- -- In GNATprove mode, we enable the range check so that
- -- GNATprove will issue a message if it cannot be proved.
-
- if GNATprove_Mode then
- Enable_Range_Check (Expr);
- end if;
-
return;
end if;
@@ -6151,13 +6151,6 @@ package body Sem_Res is
raise Program_Error;
end case;
- -- In GNATprove mode, we enable the division check so that
- -- GNATprove will issue a message if it cannot be proved.
-
- if GNATprove_Mode then
- Activate_Division_Check (N);
- end if;
-
-- Otherwise just set the flag to check at run time
else
@@ -1533,17 +1533,6 @@ package body Sem_Util is
Discard_Node
(Compile_Time_Constraint_Error (N, Msg, Ent, Loc, Warn => Warn));
- -- In GNATprove mode, do not replace the node with an exception raised.
- -- In such a case, either the call to Compile_Time_Constraint_Error
- -- issues an error which stops analysis, or it issues a warning in
- -- a few cases where a suitable check flag is set for GNATprove to
- -- generate a check message.
-
- if GNATprove_Mode then
- Set_Raises_Constraint_Error (N);
- return;
- end if;
-
-- Now we replace the node by an N_Raise_Constraint_Error node
-- This does not need reanalyzing, so set it as analyzed now.