[Ada] Cleanup repeated code in checks for unused WITH clauses
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 11 Aug 2020 14:14:19 +0000 (16:14 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 22 Oct 2020 12:11:19 +0000 (08:11 -0400)
commit1c583927a57a06e9f94de4c982ae827d227543ab
tree3978f118fb5b30cd2b7ccec56d2214f87c3fe2fb
parentf5d2432f9249f6150c6f723c70010e9aca25412e
[Ada] Cleanup repeated code in checks for unused WITH clauses

gcc/ada/

* sem_warn.adb (Check_One_Unit): Avoid repeated calls by using a
local variable Lunit; remove local constant Eitem, which was
identical to Lunit.
gcc/ada/sem_warn.adb