mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-10106 Removed the reference to fallbackRegionFormat that is no longer used.
X-SVN-Rev: 33529
This commit is contained in:
parent
297e433797
commit
a73a199d84
1 changed files with 0 additions and 8 deletions
|
@ -37,13 +37,11 @@ U_NAMESPACE_BEGIN
|
|||
static const char gZoneStrings[] = "zoneStrings";
|
||||
|
||||
static const char gRegionFormatTag[] = "regionFormat";
|
||||
static const char gFallbackRegionFormatTag[] = "fallbackRegionFormat";
|
||||
static const char gFallbackFormatTag[] = "fallbackFormat";
|
||||
|
||||
static const UChar gEmpty[] = {0x00};
|
||||
|
||||
static const UChar gDefRegionPattern[] = {0x7B, 0x30, 0x7D, 0x00}; // "{0}"
|
||||
static const UChar gDefFallbackRegionPattern[] = {0x7B, 0x31, 0x7D, 0x20, 0x28, 0x7B, 0x30, 0x7D, 0x29, 0x00}; // "{1} ({0})"
|
||||
static const UChar gDefFallbackPattern[] = {0x7B, 0x31, 0x7D, 0x20, 0x28, 0x7B, 0x30, 0x7D, 0x29, 0x00}; // "{1} ({0})"
|
||||
|
||||
static const double kDstCheckRange = (double)184*U_MILLIS_PER_DAY;
|
||||
|
@ -361,7 +359,6 @@ TZGNCore::initialize(const Locale& locale, UErrorCode& status) {
|
|||
|
||||
// Initialize format patterns
|
||||
UnicodeString rpat(TRUE, gDefRegionPattern, -1);
|
||||
UnicodeString frpat(TRUE, gDefFallbackRegionPattern, -1);
|
||||
UnicodeString fpat(TRUE, gDefFallbackPattern, -1);
|
||||
|
||||
UErrorCode tmpsts = U_ZERO_ERROR; // OK with fallback warning..
|
||||
|
@ -374,11 +371,6 @@ TZGNCore::initialize(const Locale& locale, UErrorCode& status) {
|
|||
rpat.setTo(regionPattern, -1);
|
||||
}
|
||||
tmpsts = U_ZERO_ERROR;
|
||||
const UChar *fallbackRegionPattern = ures_getStringByKeyWithFallback(zoneStrings, gFallbackRegionFormatTag, NULL, &tmpsts);
|
||||
if (U_SUCCESS(tmpsts) && u_strlen(fallbackRegionPattern) > 0) {
|
||||
frpat.setTo(fallbackRegionPattern, -1);
|
||||
}
|
||||
tmpsts = U_ZERO_ERROR;
|
||||
const UChar *fallbackPattern = ures_getStringByKeyWithFallback(zoneStrings, gFallbackFormatTag, NULL, &tmpsts);
|
||||
if (U_SUCCESS(tmpsts) && u_strlen(fallbackPattern) > 0) {
|
||||
fpat.setTo(fallbackPattern, -1);
|
||||
|
|
Loading…
Add table
Reference in a new issue