Remove unused argument in calculate_constraints