From e5a6f05e92a2878ff0c3a7a0dfa86f1c6dc377e6 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 8 Jan 2022 08:56:16 -0800 Subject: [PATCH] Revert "add timestamps to logs where older OS doesn't provide" This reverts commit f0a05c004c4951fb82ec6e5ab8c1a1e8c5465185. Turns out logcat can be made to show timestamps on older devices too. --- .../src/main/java/org/eehouse/android/xw4/Log.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java index 96adb1279..35755b391 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/Log.java @@ -25,7 +25,6 @@ import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; -import android.os.Build; import android.os.Environment; import android.os.Process; @@ -63,13 +62,6 @@ public class Log { private static boolean sUseDB; private static WeakReference sContextRef; - private static SimpleDateFormat sTSFormatter; - static { - if ( Build.VERSION_CODES.LOLLIPOP >= Build.VERSION.SDK_INT ) { - sTSFormatter = new SimpleDateFormat(" MM-dd HH:mm:ss.SSS "); - } - } - private static enum LOG_LEVEL { INFO, ERROR, @@ -166,10 +158,6 @@ public class Log { { String str = new Formatter().format( fmt, args ).toString(); String fullTag = PRE_TAG + tag; - if ( null != sTSFormatter ) { - fullTag = sTSFormatter.format(new Date()) + fullTag; - } - switch ( level ) { case DEBUG: android.util.Log.d( fullTag, str );