Remove some dead variables.

This gets rid of some code that appears to have no function and which prevents building with -Wall -Werror (which Qt Creator insists on setting).

Considering it's build-breaking for me, it'll creep into a patch sooner or later, so I gave it one of its own.