nit: remove unused code