lib: remove unused variables

Signed-off-by: Fedor Indutny <fedor@indutny.com>