Remove unused 'getXCorr' function