Skip to content

Commit 454d722

Browse files
committed
Removing TemporalUtil.isBuiltinCalendar().
1 parent e3b061b commit 454d722

File tree

1 file changed

+0
-8
lines changed
  • graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/util

1 file changed

+0
-8
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/util/TemporalUtil.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,14 +1131,6 @@ public static ISODateRecord balanceISOYearMonth(double year, double month) {
11311131
return new ISODateRecord((int) yearPrepared, monthPrepared, 0);
11321132
}
11331133

1134-
private static final Set<String> AVAILABLE_CALENDARS = Set.of("iso8601", "gregory", "japanese");
1135-
1136-
@TruffleBoundary
1137-
public static boolean isBuiltinCalendar(TruffleString id) {
1138-
String lowerCaseID = id.toJavaStringUncached().toLowerCase();
1139-
return AVAILABLE_CALENDARS.contains(lowerCaseID);
1140-
}
1141-
11421134
@TruffleBoundary
11431135
public static ParseISODateTimeResult parseTemporalDateTimeString(boolean zoned, TruffleString string) {
11441136
JSTemporalParserRecord rec = (new TemporalParser(string)).parseAnnotatedDateTime(zoned, false);

0 commit comments

Comments
 (0)