remove unused function from flappy