Useless function removal