UnitMain: Remove unused function.