lib: remove unused code