remove unused method and constant