From 1e4a1e04a7ca8a6228c1e29bde6c1456015a6076 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 7 Jul 2024 12:56:27 +0200 Subject: [PATCH] Remove unused stuff from slf4j-compat --- .../slf4j_compat/CompatibilityLogger.java | 40 ++----------------- .../CompatibilityLoggerFactory.java | 1 - 2 files changed, 3 insertions(+), 38 deletions(-) diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java index 2f423f3..e5a0d87 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java @@ -34,8 +34,6 @@ import org.slf4j.helpers.LegacyAbstractLogger; import org.slf4j.helpers.MessageFormatter; import org.slf4j.helpers.NormalizedParameters; -import java.io.Serial; - /** * A SLF4J Logger that redirects all log calls to sos!engine's logger. * @@ -51,48 +49,16 @@ public class CompatibilityLogger extends LegacyAbstractLogger { */ private final LoggerInstance logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE)); - /** - * Some funny serial number. - * - * @since 1-alpha0 - */ - @Serial - private static final long serialVersionUID = -6092384602759788914L; - - /** - * Determines if the logger has been initialized yet. - * - * @since 1-alpha0 - */ - private static boolean INITIALIZED = false; - - /** - * Lazily initializes the logger. - * - * @since 1-alpha0 - */ - static void lazyInit() { - if (!INITIALIZED) - INITIALIZED = true; - } - /** * Protected access allows only {@link CompatibilityLoggerFactory} and also derived classes to instantiate - * CompatibilityLogger instances. + * {@link CompatibilityLogger} instances. + * + * @since 1-alpha0 */ protected CompatibilityLogger(String name) { this.name = name; } - /** - * Initializes the logger. - * - * @since 1-alpha0 - */ - // external software might be invoking this method directly. Do not rename - // or change its semantics. - static void init() {} - /** * Returns the fully qualified caller name. * diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java index 669da45..f113523 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java @@ -42,7 +42,6 @@ public class CompatibilityLoggerFactory implements ILoggerFactory { */ public CompatibilityLoggerFactory() { loggerMap = new ConcurrentHashMap<>(); - CompatibilityLogger.lazyInit(); } /**