]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove unreferenced routine Is_Inherited_Operation_For_Type
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 13 Apr 2023 12:53:52 +0000 (14:53 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 13 Jun 2023 07:31:44 +0000 (09:31 +0200)
Remove routine that is no referenced after deconstructing of restriction
SPARK_05.

gcc/ada/

* sem_util.ads (Is_Inherited_Operation_For_Type): Remove spec.
* sem_util.adb (Is_Inherited_Operation_For_Type): Remove body.

gcc/ada/sem_util.adb
gcc/ada/sem_util.ads

index 237bbd3987cbfc6eefec72d2fcc613e17dcb806d..c736bc34bb102f38e77282d53b80ca7f92d6da94 100644 (file)
@@ -17582,21 +17582,6 @@ package body Sem_Util is
                   and then Is_Derived_Type (Etype (E)));
    end Is_Inherited_Operation;
 
-   -------------------------------------
-   -- Is_Inherited_Operation_For_Type --
-   -------------------------------------
-
-   function Is_Inherited_Operation_For_Type
-     (E   : Entity_Id;
-      Typ : Entity_Id) return Boolean
-   is
-   begin
-      --  Check that the operation has been created by the type declaration
-
-      return Is_Inherited_Operation (E)
-        and then Defining_Identifier (Parent (E)) = Typ;
-   end Is_Inherited_Operation_For_Type;
-
    --------------------------------------
    -- Is_Inlinable_Expression_Function --
    --------------------------------------
index 2a2dbdc2bddc32477ca64aafcf4a5bdfa9143cac..539ebebafcbe0569a66b753735058eb29091fa5a 100644 (file)
@@ -2088,12 +2088,6 @@ package Sem_Util is
    --  E is a subprogram. Return True is E is an implicit operation inherited
    --  by a derived type declaration.
 
-   function Is_Inherited_Operation_For_Type
-     (E   : Entity_Id;
-      Typ : Entity_Id) return Boolean;
-   --  E is a subprogram. Return True is E is an implicit operation inherited
-   --  by the derived type declaration for type Typ.
-
    function Is_Inlinable_Expression_Function (Subp : Entity_Id) return Boolean;
    --  Return True if Subp is an expression function that fulfills all the
    --  following requirements for inlining: