diff --git a/logic/src/main/java/org/itsallcode/whiterabbit/logic/service/FormatterService.java b/logic/src/main/java/org/itsallcode/whiterabbit/logic/service/FormatterService.java index 3101aaf8..ff6d109a 100644 --- a/logic/src/main/java/org/itsallcode/whiterabbit/logic/service/FormatterService.java +++ b/logic/src/main/java/org/itsallcode/whiterabbit/logic/service/FormatterService.java @@ -7,11 +7,8 @@ import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.time.format.FormatStyle; -import java.util.Arrays; import java.util.Locale; -import org.itsallcode.whiterabbit.api.model.DayType; - public class FormatterService { private final Locale locale; @@ -40,14 +37,6 @@ private String format(String pattern, final Object... arguments) return temp.format(arguments); } - private static int getMaxDayTypeLength() - { - return Arrays.stream(DayType.values()) // - .map(DayType::toString) // - .mapToInt(String::length) // - .max().getAsInt(); - } - public String formatDateAndTime(Instant instant) { final LocalDateTime dateTime = LocalDateTime.ofInstant(instant, timeZoneId);