Remove a unreferenced function