From 84a2c37055abba573919b030d2c997b5184c964e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 11 Feb 2021 13:48:50 +0100 Subject: [PATCH] unused code --- app/src/main/res/layout/activity_preferences.xml | 2 +- .../info/nightscout/androidaps/utils/DateUtil.java | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml index 00b72e0b74..eef88c7bad 100644 --- a/app/src/main/res/layout/activity_preferences.xml +++ b/app/src/main/res/layout/activity_preferences.xml @@ -34,7 +34,7 @@ + android:layout_height="wrap_content" /> diff --git a/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java b/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java index 46fac31626..256b5215de 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java +++ b/core/src/main/java/info/nightscout/androidaps/utils/DateUtil.java @@ -42,12 +42,10 @@ import info.nightscout.androidaps.utils.resources.ResourceHelper; @Singleton public class DateUtil { private final Context context; - private final ResourceHelper resourceHelper; @Inject - public DateUtil(Context context, ResourceHelper resourceHelper) { + public DateUtil(Context context) { this.context = context; - this.resourceHelper = resourceHelper; } /** @@ -193,10 +191,6 @@ public class DateUtil { return new DateTime(mills).toString(DateTimeFormat.forPattern(format)); } - public static String timeFullString(long mills) { - return new DateTime(mills).toString(DateTimeFormat.fullTime()); - } - public String dateAndTimeString(Date date) { return dateString(date) + " " + timeString(date); } @@ -279,10 +273,6 @@ public class DateUtil { return diff > T.mins(minutes).msecs(); } - public static GregorianCalendar gregorianCalendar() { - return new GregorianCalendar(); - } - public static long getTimeZoneOffsetMs() { return new GregorianCalendar().getTimeZone().getRawOffset(); }