Fix incorrect parsing in the rewriter


What we inherit from the scenegraph from Qt 5 has an
obvious bug, where tokens starting with 'v' get that
letter cut off. This does not affect the behavior of
the batching-rewriter, since that only really cares
about looking for "void" followed by "main", where
void has its own token and so the problem never
becomes visible, but is incorrect once we start to
use the token stream for other purposes.

While we are at it, remove the unused enums and variables.

Change-Id: Ie4d5168ccecaac61790e02f96294566637a44894
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit7ee0fbe9f232c712679559c2939f8573089f8f76
parent20465713c8b8e40a2c186c60ed4b94bced45a27d
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeThu, 10 Nov 2022 12:07:19 +0100