Remove unused local references to standard functions