Skip to content

Commit

Permalink
#76: Remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Feb 13, 2021
1 parent 1fd1689 commit dd44721
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit dd44721

Please sign in to comment.