Skip to content

Commit c7895df

Browse files
committed
Remove debug routines for exemption mechanism
1 parent 0596e33 commit c7895df

File tree

1 file changed

+0
-79
lines changed

1 file changed

+0
-79
lines changed

lkql_checker/src/gnatcheck-diagnoses.adb

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -497,21 +497,6 @@ package body Gnatcheck.Diagnoses is
497497
Equivalent_Keys => "=");
498498
Postponed_Param_Exempt_Sections : Per_Rule_Postponed_Param_Exemp_Map.Map;
499499

500-
--------------------------------------------
501-
-- Debug routines for exemption mechanism --
502-
--------------------------------------------
503-
504-
procedure Parametrized_Exem_Section_Debug_Image
505-
(S : Parametrized_Exemption_Sections.Cursor);
506-
-- Prints out the debug image of the information stored for a parametric
507-
-- exemption section.
508-
509-
procedure Rule_Parametrized_Exem_Sections_Debug_Image (Rule : Rule_Id);
510-
pragma Unreferenced (Rule_Parametrized_Exem_Sections_Debug_Image);
511-
-- Prints out the debug image of the current state of the information about
512-
-- parametric exemption sections stored for Rule in
513-
-- Rule_Param_Exempt_Sections
514-
515500
------------------------------------
516501
-- Allowed_As_Exemption_Parameter --
517502
------------------------------------
@@ -1277,50 +1262,6 @@ package body Gnatcheck.Diagnoses is
12771262
end loop;
12781263
end Map_On_Postponed_Check_Exemption;
12791264

1280-
-------------------------------------------
1281-
-- Parametrized_Exem_Section_Debug_Image --
1282-
-------------------------------------------
1283-
1284-
procedure Parametrized_Exem_Section_Debug_Image
1285-
(S : Parametrized_Exemption_Sections.Cursor)
1286-
is
1287-
ES_Info : Parametrized_Exemption_Info;
1288-
begin
1289-
if Parametrized_Exemption_Sections.Has_Element (S) then
1290-
ES_Info := Parametrized_Exemption_Sections.Element (S);
1291-
1292-
Info ("+++++++++++++++++++++++++++++++++++++++++++++++");
1293-
Info_No_EOL ("parametric exemption section for rule");
1294-
Info (ES_Info.Rule'Img & "(" & Rule_Name (ES_Info.Rule) & ")");
1295-
Info ("in file SF=" & ES_Info.SF'Img &
1296-
"(" & Short_Source_Name (ES_Info.SF) & ")");
1297-
Info ("Parameters:");
1298-
1299-
if ES_Info.Params.Is_Empty then
1300-
Info (" Empty parameter list!");
1301-
else
1302-
for El of ES_Info.Params loop
1303-
Info (">>" & El & "<<");
1304-
end loop;
1305-
end if;
1306-
1307-
Info ("Span: " & ES_Info.Exempt_Info.Line_Start'Img & ":" &
1308-
ES_Info.Exempt_Info.Col_Start'Img & " -" &
1309-
ES_Info.Exempt_Info.Line_End'Img & ":" &
1310-
ES_Info.Exempt_Info.Col_End'Img);
1311-
Info ("Detected :" & ES_Info.Exempt_Info.Detected'Img);
1312-
Info_No_EOL ("Justification: ");
1313-
1314-
if ES_Info.Exempt_Info.Justification = Null_Unbounded_String then
1315-
Info ("IS NOT SET!!!");
1316-
else
1317-
Info (">>" & To_String (ES_Info.Exempt_Info.Justification) & "<<");
1318-
end if;
1319-
else
1320-
Info ("No parametric exemption section");
1321-
end if;
1322-
end Parametrized_Exem_Section_Debug_Image;
1323-
13241265
----------------
13251266
-- Params_Img --
13261267
----------------
@@ -2695,26 +2636,6 @@ package body Gnatcheck.Diagnoses is
26952636
end if;
26962637
end Rule_Parameter;
26972638

2698-
-------------------------------------------------
2699-
-- Rule_Parametrized_Exem_Sections_Debug_Image --
2700-
-------------------------------------------------
2701-
2702-
procedure Rule_Parametrized_Exem_Sections_Debug_Image (Rule : Rule_Id) is
2703-
begin
2704-
Info ("** PARAMETRIC EXEMPTION SECTIONS FOR RULE" & Rule'Img &
2705-
" (" & Rule_Name (Rule) & ") **");
2706-
2707-
if Parametrized_Exemption_Sections.Is_Empty
2708-
(Rule_Param_Exempt_Sections (Rule))
2709-
then
2710-
Info (" No parametric exemption sections");
2711-
else
2712-
Parametrized_Exemption_Sections.Iterate
2713-
(Container => Rule_Param_Exempt_Sections (Rule),
2714-
Process => Parametrized_Exem_Section_Debug_Image'Access);
2715-
end if;
2716-
end Rule_Parametrized_Exem_Sections_Debug_Image;
2717-
27182639
-----------------------------------
27192640
-- Find_Same_Parameter_Exemption --
27202641
-----------------------------------

0 commit comments

Comments
 (0)