Remove unused getNumCores method from PI