simonjwright / coldframe

ColdFrame generates Ada framework code and documentation from UML models.
https://simonjwright.github.io/coldframe
GNU General Public License v2.0
8 stars 1 forks source link

Redundant "with"s in generated class specs #22

Closed simonjwright closed 1 year ago

simonjwright commented 1 year ago

In, for example, AdaSNTP, we generate e.g.

with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Containers;
with Ada.Containers.Vectors;

which results in

sntp-server.ads:17:06: warning: redundant with clause [-gnatwr]

I don’t think we need to with Ada.Containers at all.

simonjwright commented 1 year ago

We do need Ada.Containers, because we might be using ColdFrame.Containers, and we still need Count_Type, Hash_Type.

simonjwright commented 1 year ago

Fixed in 24357d4f963e81f2a8a91a48ab7cf06abd5c1e92