]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove outdated comment
authorMarc Poulhiès <poulhies@adacore.com>
Fri, 10 Oct 2025 09:08:34 +0000 (11:08 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 3 Nov 2025 14:15:16 +0000 (15:15 +0100)
The comment has been documenting a 'Present(S)' that has been long
gone (>17y).

gcc/ada/ChangeLog:

* sem_aux.adb (Enclosing_Dynamic_Scope): Remove comment.

gcc/ada/sem_aux.adb

index 58a4beb221db830e397ee8d5bfa3acab10d86acb..107e27e2e43f161a40ed1b234e5a8c3611d53477 100644 (file)
@@ -184,9 +184,6 @@ package body Sem_Aux is
 
       --  Normal case, search enclosing scopes
 
-      --  Note: the test for Present (S) should not be required, it defends
-      --  against an ill-formed tree.
-
       S := Scope (Ent);
       loop
          --  If we somehow got an empty value for Scope, the tree must be