Skip to content

Commit

Permalink
Merge branch 'topic/1390' into 'master'
Browse files Browse the repository at this point in the history
Remove useless code in Adanode.gnat_xref

See merge request eng/libadalang/libadalang!1660
  • Loading branch information
thvnx committed Jun 4, 2024
2 parents 4cc7e4e + e292f36 commit 142a740
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ada/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 142a740

Please sign in to comment.