6560981: (cal) unused local variables in GregorianCalendar, etc.

Reviewed-by: naoto, bchristi, iris
This commit is contained in:
Justin Lu 2022-10-06 23:16:06 +00:00 committed by Naoto Sato
parent 5dd851d872
commit d4c9a88073
3 changed files with 3 additions and 9 deletions

View file

@ -2118,7 +2118,6 @@ class JapaneseImperialCalendar extends Calendar {
* @param fixedDate the fixed date representation of the date
*/
private long getFixedDateJan1(LocalGregorianCalendar.Date date, long fixedDate) {
Era era = date.getEra();
if (date.getEra() != null && date.getYear() == 1) {
for (int eraIndex = getEraIndex(date); eraIndex > 0; eraIndex--) {
CalendarDate d = eras[eraIndex].getSinceDate();