remove unused method and class