From dd44721ea768bf41c74975a4c42a180440d5cb63 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sat, 13 Feb 2021 14:22:20 +0100 Subject: [PATCH] #76: Remove unnecessary method --- .../whiterabbit/logic/service/FormatterService.java | 11 ----------- 1 file changed, 11 deletions(-) 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);