@@ -1692,37 +1692,11 @@ package body Gnatcheck.Diagnoses is
1692
1692
procedure Print_Out_Diagnoses is
1693
1693
Diagnoses_Reported : Natural := 0 ;
1694
1694
Limit_Exceeded : Boolean := False;
1695
- GPS_Prefix : constant String := " check:" ;
1696
-
1697
- function Preprocess_Diag (Diag : String) return String;
1698
- -- Add GPS_Prefix if Progress_Indicator_Mode is True, and remove any
1699
- -- trailing GNAT tag following the "[-gnat<x>]" format.
1700
1695
1701
1696
procedure Counted_Print_Diagnosis
1702
1697
(Position : Error_Messages_Storage.Cursor);
1703
1698
-- Print diagnosis until reaching Max_Diagnoses
1704
1699
1705
- -- -------------------
1706
- -- Preprocess_Diag --
1707
- -- -------------------
1708
-
1709
- function Preprocess_Diag (Diag : String) return String is
1710
- begin
1711
- if Arg.Progress_Indicator_Mode.Get then
1712
- declare
1713
- Idx : constant Natural := Index (Diag, " : " );
1714
- begin
1715
- return
1716
- Diag (Diag'First .. Idx + 1 )
1717
- & GPS_Prefix
1718
- & ' '
1719
- & Strip_Tag (Diag (Idx + 2 .. Diag'Last));
1720
- end ;
1721
- else
1722
- return Strip_Tag (Diag);
1723
- end if ;
1724
- end Preprocess_Diag ;
1725
-
1726
1700
-- ---------------------------
1727
1701
-- Counted_Print_Diagnosis --
1728
1702
-- ---------------------------
@@ -1743,7 +1717,7 @@ package body Gnatcheck.Diagnoses is
1743
1717
then
1744
1718
Diagnoses_Reported := @ + 1 ;
1745
1719
Print
1746
- (Preprocess_Diag
1720
+ (Strip_Tag
1747
1721
(Image (Error_Messages_Storage.Element (Position))));
1748
1722
end if ;
1749
1723
end if ;
0 commit comments