@@ -1692,37 +1692,11 @@ package body Gnatcheck.Diagnoses is
16921692 procedure Print_Out_Diagnoses is
16931693 Diagnoses_Reported : Natural := 0 ;
16941694 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.
17001695
17011696 procedure Counted_Print_Diagnosis
17021697 (Position : Error_Messages_Storage.Cursor);
17031698 -- Print diagnosis until reaching Max_Diagnoses
17041699
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-
17261700 -- ---------------------------
17271701 -- Counted_Print_Diagnosis --
17281702 -- ---------------------------
@@ -1743,7 +1717,7 @@ package body Gnatcheck.Diagnoses is
17431717 then
17441718 Diagnoses_Reported := @ + 1 ;
17451719 Print
1746- (Preprocess_Diag
1720+ (Strip_Tag
17471721 (Image (Error_Messages_Storage.Element (Position))));
17481722 end if ;
17491723 end if ;
0 commit comments