projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c6eef3
)
[Ada] Remove dead code for detecting hidden package state
author
Piotr Trojanek
<trojanek@adacore.com>
Thu, 12 Dec 2019 11:02:22 +0000
(12:02 +0100)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Tue, 2 Jun 2020 08:58:11 +0000
(
04:58
-0400)
2020-06-02 Piotr Trojanek <trojanek@adacore.com>
gcc/ada/
* sem_util.adb (Check_No_Hidden_State): Remove dead code.
gcc/ada/sem_util.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_util.adb
b/gcc/ada/sem_util.adb
index 814d5039867cdd39fb7237e7cf1c9ca0d113824e..650226e96ec02852c2a84431ffb0e94b2af77892 100644
(file)
--- a/
gcc/ada/sem_util.adb
+++ b/
gcc/ada/sem_util.adb
@@
-3398,12
+3398,6
@@
package body Sem_Util is
or else Ekind_In (Context, E_Block, E_Task_Type)
then
return;
-
- -- When examining a package body, use the entity of the spec as it
- -- carries the abstract state declarations.
-
- elsif Ekind (Context) = E_Package_Body then
- Context := Spec_Entity (Context);
end if;
-- Stop the traversal when a package subject to a null abstract state