ada: Remove unneeded code in handling formal type defaults
commitd96a20bf2ef939c0dd9d2bb32c59267842279c29
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 6 Sep 2022 21:20:47 +0000 (6 23:20 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 8 Nov 2022 08:34:59 +0000 (8 09:34 +0100)
treee6b53e4f3edc35f1007b2892bce1afd851c304d0
parent5c0722cb40ac1be1e5c40b3aff6fc7b58e3e4cba
ada: Remove unneeded code in handling formal type defaults

Unneeded code found while experimenting with improved detection of
unreferenced objects.

gcc/ada/

* sem_ch12.adb (Validate_Formal_Type_Default): Remove call to
Collect_Interfaces, which had no effect apart from populating a
list that was not used; fix style.
gcc/ada/sem_ch12.adb