Code cleanup; when First is called on No_List, it intentionally returns Empty.
gcc/ada/ChangeLog:
* exp_ch9.adb (Scan_Declarations): Remove redundant guard.
is
Def : Node_Id;
Rec_Typ : Entity_Id;
+
procedure Scan_Declarations (L : List_Id);
-- Common processing for visible and private declarations
-- of a protected type.
+ -----------------------
+ -- Scan_Declarations --
+ -----------------------
+
procedure Scan_Declarations (L : List_Id) is
Decl : Node_Id;
Wrap_Decl : Node_Id;
Wrap_Spec : Node_Id;
begin
- if No (L) then
- return;
- end if;
-
Decl := First (L);
while Present (Decl) loop
Wrap_Spec := Empty;