public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Remove dead Fortran function.
@ 2021-11-09 13:59 Martin Liška
  2021-11-09 15:53 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2021-11-09 13:59 UTC (permalink / raw)
  To: gcc-patches; +Cc: gfortran, Tobias Burnus, pault

Hello.

The function was introduced in 2009 in g:cf2b3c22a2cbd7f50db530ca9d2b14c70ba0359d
and has never been used since that.

Ready to be installed?
Thanks,
Martin

gcc/fortran/ChangeLog:

	* symbol.c (gfc_get_ultimate_derived_super_type): Remove.
---
  gcc/fortran/symbol.c | 17 -----------------
  1 file changed, 17 deletions(-)

diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index 8c9a1d00ce0..173c36f51bc 100644
--- a/gcc/fortran/symbol.c
+++ b/gcc/fortran/symbol.c
@@ -5106,23 +5106,6 @@ gfc_get_derived_super_type (gfc_symbol* derived)
  }
  
  
-/* Get the ultimate super-type of a given derived type.  */
-
-static gfc_symbol*
-gfc_get_ultimate_derived_super_type (gfc_symbol* derived)
-{
-  if (!derived->attr.extension)
-    return NULL;
-
-  derived = gfc_get_derived_super_type (derived);
-
-  if (derived->attr.extension)
-    return gfc_get_ultimate_derived_super_type (derived);
-  else
-    return derived;
-}
-
-
  /* Check if a derived type t2 is an extension of (or equal to) a type t1.  */
  
  bool
-- 
2.33.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove dead Fortran function.
  2021-11-09 13:59 [PATCH] Remove dead Fortran function Martin Liška
@ 2021-11-09 15:53 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2021-11-09 15:53 UTC (permalink / raw)
  To: Martin Liška, gcc-patches; +Cc: Tobias Burnus, pault, gfortran



On 11/9/2021 6:59 AM, Martin Liška wrote:
> Hello.
>
> The function was introduced in 2009 in 
> g:cf2b3c22a2cbd7f50db530ca9d2b14c70ba0359d
> and has never been used since that.
>
> Ready to be installed?
> Thanks,
> Martin
>
> gcc/fortran/ChangeLog:
>
>     * symbol.c (gfc_get_ultimate_derived_super_type): Remove.
OK
jeff


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-09 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 13:59 [PATCH] Remove dead Fortran function Martin Liška
2021-11-09 15:53 ` Jeff Law

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).