delete getNumCat unused func.