]> gcc.gnu.org Git - gcc.git/commit
ada: Remove redundant protection against empty list
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 23 Aug 2023 14:44:57 +0000 (16:44 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 5 Sep 2023 11:05:17 +0000 (13:05 +0200)
commit10b4a454b2f5c2c3c6c98b4f7bf6bcf537c072cc
tree8ca4e8e1b1821c4341890d6903a2ede9d938cd71
parent4e61fc48f58c16427593ded7fdd0ff49bed897b0
ada: Remove redundant protection against empty list

Calls to First on No_List intentionally return Empty, so explicit guards
against No_List are unnecessary. Code cleanup; semantics is unaffected.

gcc/ada/

* sem_type.adb (Interface_Present_In_Ancestor): Remove guard against no
list of interfaces; fix style in comments (trailing dots).
gcc/ada/sem_type.adb
This page took 0.057338 seconds and 5 git commands to generate.