Fix warning unused

Change-Id: Iaab48cb9a9b6675579f00dd2a5eb038c5e94904a
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>