Skip to content

Commit 1e941de

Browse files
turbanoffRoger Riggs
authored andcommitted
8275197: Remove unused fields in ThaiBuddhistChronology
Reviewed-by: naoto, rriggs, iris
1 parent 6954b98 commit 1e941de

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

src/java.base/share/classes/java/time/chrono/ThaiBuddhistChronology.java

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -72,7 +72,6 @@
7272
import java.time.temporal.TemporalAccessor;
7373
import java.time.temporal.TemporalField;
7474
import java.time.temporal.ValueRange;
75-
import java.util.HashMap;
7675
import java.util.List;
7776
import java.util.Locale;
7877
import java.util.Map;
@@ -121,41 +120,6 @@ public final class ThaiBuddhistChronology extends AbstractChronology implements
121120
* Containing the offset to add to the ISO year.
122121
*/
123122
static final int YEARS_DIFFERENCE = 543;
124-
/**
125-
* Narrow names for eras.
126-
*/
127-
private static final HashMap<String, String[]> ERA_NARROW_NAMES = new HashMap<>();
128-
/**
129-
* Short names for eras.
130-
*/
131-
private static final HashMap<String, String[]> ERA_SHORT_NAMES = new HashMap<>();
132-
/**
133-
* Full names for eras.
134-
*/
135-
private static final HashMap<String, String[]> ERA_FULL_NAMES = new HashMap<>();
136-
/**
137-
* Fallback language for the era names.
138-
*/
139-
private static final String FALLBACK_LANGUAGE = "en";
140-
/**
141-
* Language that has the era names.
142-
*/
143-
private static final String TARGET_LANGUAGE = "th";
144-
/**
145-
* Name data.
146-
*/
147-
static {
148-
ERA_NARROW_NAMES.put(FALLBACK_LANGUAGE, new String[]{"BB", "BE"});
149-
ERA_NARROW_NAMES.put(TARGET_LANGUAGE, new String[]{"BB", "BE"});
150-
ERA_SHORT_NAMES.put(FALLBACK_LANGUAGE, new String[]{"B.B.", "B.E."});
151-
ERA_SHORT_NAMES.put(TARGET_LANGUAGE,
152-
new String[]{"\u0e1e.\u0e28.",
153-
"\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48"});
154-
ERA_FULL_NAMES.put(FALLBACK_LANGUAGE, new String[]{"Before Buddhist", "Budhhist Era"});
155-
ERA_FULL_NAMES.put(TARGET_LANGUAGE,
156-
new String[]{"\u0e1e\u0e38\u0e17\u0e18\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a",
157-
"\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48"});
158-
}
159123

160124
/**
161125
* Restricted constructor.

0 commit comments

Comments
 (0)