Unreferenced Local Function Has Been Removed Static