ICU-22900 Remove deprecated SimpleNumber truncateStart

See #3192
This commit is contained in:
Shane F. Carr 2024-09-20 01:05:55 +00:00
parent 48cc8785f2
commit 94057e9550
4 changed files with 0 additions and 31 deletions

View file

@ -317,11 +317,6 @@ usnum_setMaximumIntegerDigits(USimpleNumber* unumber, int32_t maximumIntegerDigi
number->fNumber.setMaximumIntegerDigits(maximumIntegerDigits, *ec);
}
U_CAPI void U_EXPORT2
usnum_truncateStart(USimpleNumber* unumber, int32_t maximumIntegerDigits, UErrorCode* ec) {
usnum_setMaximumIntegerDigits(unumber, maximumIntegerDigits, ec);
}
U_CAPI void U_EXPORT2
usnum_setSign(USimpleNumber* unumber, USimpleNumberSign sign, UErrorCode* ec) {
auto* number = USimpleNumberData::validate(unumber, *ec);

View file

@ -108,10 +108,6 @@ void SimpleNumber::setMaximumIntegerDigits(uint32_t position, UErrorCode& status
fData->quantity.applyMaxInteger(position);
}
void SimpleNumber::truncateStart(uint32_t position, UErrorCode& status) {
setMaximumIntegerDigits(position, status);
}
void SimpleNumber::setSign(USimpleNumberSign sign, UErrorCode& status) {
if (U_FAILURE(status)) {
return;

View file

@ -87,16 +87,6 @@ class U_I18N_API SimpleNumber : public UMemory {
void setMaximumIntegerDigits(uint32_t maximumIntegerDigits, UErrorCode& status);
#endif // U_HIDE_DRAFT_API
#ifndef U_HIDE_DEPRECATED_API
/**
* Alias for setMaximumIntegerDigits.
* Will be removed after ICU 75.
*
* @deprecated ICU 75
*/
void truncateStart(uint32_t maximumIntegerDigits, UErrorCode& status);
#endif // U_HIDE_DEPRECATED_API
/**
* Pads the beginning of the number with zeros up to the given minimum number of integer digits.
*

View file

@ -167,18 +167,6 @@ usnum_setMaximumIntegerDigits(USimpleNumber* unumber, int32_t maximumIntegerDigi
#endif // U_HIDE_DRAFT_API
#ifndef U_HIDE_DEPRECATED_API
/**
* Alias for setMaximumIntegerDigits.
* Will be removed after ICU 75.
*
* @deprecated ICU 75
*/
U_CAPI void U_EXPORT2
usnum_truncateStart(USimpleNumber* unumber, int32_t maximumIntegerDigits, UErrorCode* ec);
#endif // U_HIDE_DEPRECATED_API
/**
* Sets the sign of the number: an explicit plus sign, explicit minus sign, or no sign.
*