lib: remove unused variables

This time for the master branch!