Remove unused functions from core library