Use proper assertion, remove unused method