From df9b8342289b2ca208ba80cac09ff7d2dcba842c Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 29 Jan 2022 15:36:26 +0100 Subject: [PATCH] Removed log color caching --- app/src/main/java/eu/faircode/email/EntityLog.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityLog.java b/app/src/main/java/eu/faircode/email/EntityLog.java index 78d014f764..5c84981006 100644 --- a/app/src/main/java/eu/faircode/email/EntityLog.java +++ b/app/src/main/java/eu/faircode/email/EntityLog.java @@ -26,13 +26,10 @@ import androidx.annotation.NonNull; import androidx.core.content.ContextCompat; import androidx.preference.PreferenceManager; import androidx.room.Entity; -import androidx.room.Ignore; import androidx.room.Index; import androidx.room.PrimaryKey; import java.util.Date; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; import java.util.concurrent.ExecutorService; @@ -67,9 +64,6 @@ public class EntityLog { @NonNull public String data; - @Ignore - private static Map mapColor = new HashMap<>(); - enum Type {General, Statistics, Scheduling, Network, Account, Protocol, Classification, Notification, Rules} private static final ExecutorService executor = @@ -206,12 +200,6 @@ public class EntityLog { } static Integer getColor(Context context, Type type) { - if (!mapColor.containsKey(type)) - mapColor.put(type, _getColor(context, type)); - return mapColor.get(type); - } - - private static Integer _getColor(Context context, Type type) { // R.color.solarizedRed switch (type) { case General: