LSP type generation: fix dependency bug


Remove the unrelated dependencies from the script, we already collect
all dependencies via "collectDependencies".

It seems that previously, we would add all previously processed types to
the dependencies. This leads to uncompilable code when updating to 3.18
where we end up with an unresolvable cyclic dependency.

Amends 7e949e315eea494aa812a34afe35bfdb120c9ef7.

Change-Id: I29ef3b200a9d7e029de234a27e0576bee3889cc7
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
commit77db891392931569e31183fb12f2d31c7a4af13d
parentf3fa72273a151be056e69fafa992c9872a41126d
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeFri, 28 Aug 2026 09:14:27 +0000