public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1761] ada: Remove unreferenced routine Is_Inherited_Operation_For_Type
@ 2023-06-13 7:33 Marc Poulhi?s
0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-06-13 7:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0ac91bdbef4c3455aa469381d521f421770dbf50
commit r14-1761-g0ac91bdbef4c3455aa469381d521f421770dbf50
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Thu Apr 13 14:53:52 2023 +0200
ada: Remove unreferenced routine Is_Inherited_Operation_For_Type
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.
Diff:
---
gcc/ada/sem_util.adb | 15 ---------------
gcc/ada/sem_util.ads | 6 ------
2 files changed, 21 deletions(-)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 237bbd3987c..c736bc34bb1 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -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 --
--------------------------------------
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index 2a2dbdc2bdd..539ebebafcb 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-13 7:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13 7:33 [gcc r14-1761] ada: Remove unreferenced routine Is_Inherited_Operation_For_Type Marc Poulhi?s
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).