]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Remove an obsolete variant of Adjust_Name_Case used only by SPARK
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 15 Apr 2021 16:00:52 +0000 (18:00 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 29 Jun 2021 14:23:48 +0000 (14:23 +0000)
gcc/ada/

* errout.ads (Adjust_Name_Case): Remove obsolete and now unused
variant.
* errout.adb (Adjust_Name_Case): Likewise; fix variant that uses
a custom buffer to also use it for names in Standard_Location.

gcc/ada/errout.adb
gcc/ada/errout.ads

index f643c8da6fc62e65b62c83edd0ec77fd2086390e..8fd20760c34b75eb821a3d17aaf96111b81164d1 100644 (file)
@@ -3402,7 +3402,7 @@ package body Errout is
          --  For standard locations, always use mixed case
 
          if Loc <= No_Location then
-            Set_Casing (Mixed_Case);
+            Set_Casing (Buf, Mixed_Case);
 
          else
             --  Determine if the reference we are dealing with corresponds to
@@ -3440,11 +3440,6 @@ package body Errout is
       end;
    end Adjust_Name_Case;
 
-   procedure Adjust_Name_Case (Loc : Source_Ptr) is
-   begin
-      Adjust_Name_Case (Global_Name_Buffer, Loc);
-   end Adjust_Name_Case;
-
    ---------------------------
    -- Set_Identifier_Casing --
    ---------------------------
index 904c87d2914d243d33948e481eb22ab3ee33f144..b0cbd828e47f5ca8c06e3e63314ae9c70f11163c 100644 (file)
@@ -985,10 +985,6 @@ package Errout is
    --  the name at that source location, we copy the casing from the source,
    --  otherwise we set appropriate default casing.
 
-   procedure Adjust_Name_Case (Loc : Source_Ptr);
-   --  Uses Buf => Global_Name_Buffer. There are no calls to this in the
-   --  compiler, but it is called in SPARK 2014.
-
    procedure Set_Identifier_Casing
      (Identifier_Name : System.Address;
       File_Name       : System.Address);