[Ada] Remove redundant check for empty list
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 8 Apr 2021 19:19:54 +0000 (21:19 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 29 Jun 2021 14:23:47 +0000 (14:23 +0000)
gcc/ada/

* sem_ch3.adb (Analyze_Declarations): Remove explicit check for
missing, because a subsequent call to Is_Empty_List will detect
them anyway.

gcc/ada/sem_ch3.adb

index 70e1dfd..7dfb5c8 100644 (file)
@@ -2758,7 +2758,6 @@ package body Sem_Ch3 is
                Resolve_Aspects;
 
             elsif L /= Visible_Declarations (Parent (L))
-              or else No (Private_Declarations (Parent (L)))
               or else Is_Empty_List (Private_Declarations (Parent (L)))
             then
                Adjust_Decl;