diff --git a/ada/ast.py b/ada/ast.py index 72c3998f4..52e42661e 100644 --- a/ada/ast.py +++ b/ada/ast.py @@ -1927,12 +1927,6 @@ def gnat_xref(): dbd.is_a(T.ParamSpec), dbd.cast(T.ParamSpec).decl_param(ret), - dbd.is_a(T.GenericSubpInternal, T.GenericPackageInternal), - dbd.generic_instantiations.at(0).then( - lambda gi: gi.cast_or_raise(T.BasicDecl).defining_name, - default_val=ret - ), - dbd.is_a(T.ObjectDecl), # Since dbd can refer to an object declaration with # multiple defining names, do not call `public_part_decl`