Remove unused method checkScanFormat().