Skip to content

Commit

Permalink
Bug 1792775 - Part 8: Remove no longer needed ICU draft API guards. r…
Browse files Browse the repository at this point in the history
…=platform-i18n-reviewers,jfkthame

`UDAT_STANDALONE_NARROW_QUARTERS` has been promoted from draft to stable.

Differential Revision: https://phabricator.services.mozilla.com/D160186
  • Loading branch information
anba committed Nov 23, 2022
1 parent 52649f0 commit ff7bda3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions intl/components/src/DisplayNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ static bool IsStandaloneMonth(UDateFormatSymbolType symbolType) {
case UDAT_ZODIAC_NAMES_WIDE:
case UDAT_ZODIAC_NAMES_ABBREVIATED:
case UDAT_ZODIAC_NAMES_NARROW:
# ifndef U_HIDE_DRAFT_API
case UDAT_NARROW_QUARTERS:
case UDAT_STANDALONE_NARROW_QUARTERS:
# endif
return false;
}

Expand Down
4 changes: 0 additions & 4 deletions intl/components/src/DisplayNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,7 @@ class DisplayNames final {
break;

case DisplayNames::Style::Narrow:
#ifndef U_HIDE_DRAFT_API
symbolType = UDAT_STANDALONE_NARROW_QUARTERS;
#else
symbolType = UDAT_STANDALONE_SHORT_QUARTERS;
#endif
break;
}

Expand Down

0 comments on commit ff7bda3

Please sign in to comment.