[PATCH] Remove dead Fortran function.

Martin Liška mliska@suse.cz
Tue Nov 9 13:59:34 GMT 2021


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



More information about the Gcc-patches mailing list