You are right, `firstXY` is used nowhere.