minor fix: remove unused code