]> gcc.gnu.org Git - gcc.git/commitdiff
ada: Remove unreferenced utility routine Get_Logical_Line_Number_Img
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 30 Nov 2023 10:51:32 +0000 (11:51 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 19 Dec 2023 14:27:50 +0000 (15:27 +0100)
Routine Get_Logical_Line_Number_Img was introduced for splitting of
Pre/Post contracts, but subsequent patch for that feature removed its
only use. It was then used by GNATprove, but that use is now removed
as well.

gcc/ada/

* sinput.adb, sinput.ads (Get_Logical_Line_Number_Img): Remove.

gcc/ada/sinput.adb
gcc/ada/sinput.ads

index 4352cad62c77c056e1cc15f63d4a43179740056f..dc6b55aede1ec2225c8c612bc093945239835c49 100644 (file)
@@ -460,19 +460,6 @@ package body Sinput is
       end if;
    end Get_Logical_Line_Number;
 
-   ---------------------------------
-   -- Get_Logical_Line_Number_Img --
-   ---------------------------------
-
-   function Get_Logical_Line_Number_Img
-     (P : Source_Ptr) return String
-   is
-   begin
-      Name_Len := 0;
-      Add_Nat_To_Name_Buffer (Nat (Get_Logical_Line_Number (P)));
-      return Name_Buffer (1 .. Name_Len);
-   end Get_Logical_Line_Number_Img;
-
    ------------------------------
    -- Get_Physical_Line_Number --
    ------------------------------
index 6ce2a22e746878a38473c942dbb7e6495fabffe2..e30487e276f947e149f64e464007303a5d767458 100644 (file)
@@ -541,11 +541,6 @@ package Sinput is
 
    --  WARNING: There is a matching C declaration of this subprogram in fe.h
 
-   function Get_Logical_Line_Number_Img
-     (P : Source_Ptr) return String;
-   --  Same as above function, but returns the line number as a string of
-   --  decimal digits, with no leading space. Destroys Name_Buffer.
-
    function Get_Physical_Line_Number
      (P : Source_Ptr) return Physical_Line_Number;
    --  The line number of the specified source position is obtained by
This page took 0.06462 seconds and 5 git commands to generate.