lib: remove unused variables