aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-08-23 16:44:57 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-09-05 13:05:17 +0200
commit10b4a454b2f5c2c3c6c98b4f7bf6bcf537c072cc (patch)
tree8ca4e8e1b1821c4341890d6903a2ede9d938cd71 /gcc/ada/gcc-interface/decl.cc
parent4e61fc48f58c16427593ded7fdd0ff49bed897b0 (diff)
downloadgcc-10b4a454b2f5c2c3c6c98b4f7bf6bcf537c072cc.zip
gcc-10b4a454b2f5c2c3c6c98b4f7bf6bcf537c072cc.tar.gz
gcc-10b4a454b2f5c2c3c6c98b4f7bf6bcf537c072cc.tar.bz2
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).
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
0 files changed, 0 insertions, 0 deletions