Remove a useless function that was wasting a lot of resources