testlibrary: Remove unused variables
testlibrary: Remove unused variables

Detected by compiling with clang.

Signed-off-by: Simon McVittie <smcv@collabora.com>

Closes: #2951
Approved by: matthiasclasen

flatpak/flatpak,flatpak/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,flatpak/flatpak,matthiasclasen/flatpak,flatpak/flatpak,flatpak/flatpak