From 465691420398aab3fb33e4b4bf71e3c4b581de3b Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 12:43:48 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"Key-Value=E3=81=AA=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=82=92=E5=87=BA=E5=8A=9B=E3=81=97=E3=82=84=E3=81=99=E3=81=8F?= =?UTF-8?q?=E3=81=97=E3=81=9F"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a439bbd88839578940070c98a00b579fed6cbaf6. --- .../one/nem/lacerta/utils/LacertaLogger.java | 5 ---- .../lacerta/utils/impl/LacertaLoggerImpl.java | 28 ------------------- 2 files changed, 33 deletions(-) diff --git a/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java b/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java index 8de3a97b..f49da584 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java +++ b/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java @@ -1,7 +1,5 @@ package one.nem.lacerta.utils; -import one.nem.lacerta.utils.model.KeyValueLog; - public interface LacertaLogger { void info(String tag, String message); @@ -11,7 +9,4 @@ public interface LacertaLogger { void trace(String tag, String message); void fatal(String tag, String message); - String buildMessageByObject(KeyValueLog... logs); - // With name - String buildMessageByObject(String name, KeyValueLog... logs); } diff --git a/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java b/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java index aedf1f0f..aba337d8 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java +++ b/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java @@ -5,8 +5,6 @@ import android.util.Log; import javax.inject.Inject; import one.nem.lacerta.utils.LacertaLogger; -import one.nem.lacerta.utils.model.KeyValueLog; - public class LacertaLoggerImpl implements LacertaLogger{ @Inject @@ -42,30 +40,4 @@ public class LacertaLoggerImpl implements LacertaLogger{ public void fatal(String tag, String message) { Log.wtf(tag, message); } - - @Override - public String buildMessageByObject(KeyValueLog... logs) { - StringBuilder builder = new StringBuilder(); - for (KeyValueLog log : logs) { - builder.append(log.getKey()); - builder.append(": "); - builder.append(log.getValue()); - builder.append("\n"); - } - return builder.toString(); - } - - @Override - public String buildMessageByObject(String name, KeyValueLog... logs) { - StringBuilder builder = new StringBuilder(); - builder.append(name); - builder.append("\n"); - for (KeyValueLog log : logs) { - builder.append(log.getKey()); - builder.append(": "); - builder.append(log.getValue()); - builder.append("\n"); - } - return builder.toString(); - } }