lib/: Remove some unused variables

Signed-off-by: Niels Thykier <niels@thykier.net>