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>