Remove unused field

This commit is contained in:
ghubstan 2021-06-15 12:04:39 -03:00
parent 063b52eb70
commit e5b5a06b9b
No known key found for this signature in database
GPG key ID: E35592D6800A861E

View file

@ -22,7 +22,6 @@ class EditOfferValidator {
private final EditOfferRequest.EditType editType;
private final boolean isZeroEditedFixedPriceString;
private final boolean isZeroEditedMarketPriceMargin;
private final boolean isZeroEditedTriggerPrice;
EditOfferValidator(OpenOffer currentlyOpenOffer,
@ -41,7 +40,6 @@ class EditOfferValidator {
this.editType = editType;
this.isZeroEditedFixedPriceString = new BigDecimal(editedPriceAsString).doubleValue() == 0;
this.isZeroEditedMarketPriceMargin = editedMarketPriceMargin == 0;
this.isZeroEditedTriggerPrice = editedTriggerPrice == 0;
}
@ -76,7 +74,7 @@ class EditOfferValidator {
if (editedEnable < 0)
throw new IllegalStateException(
format("programmer error: the 'enable' request parameter does not"
+ " indicate activation state of offer with id '{}' should be changed.",
+ " indicate activation state of offer with id '%s' should be changed.",
currentlyOpenOffer.getId()));
}