Remove unused stuff from slf4j-compat

This commit is contained in:
JeremyStar™ 2024-07-07 12:56:27 +02:00
parent ecf0f94784
commit 1e4a1e04a7
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 3 additions and 38 deletions

View file

@ -34,8 +34,6 @@ import org.slf4j.helpers.LegacyAbstractLogger;
import org.slf4j.helpers.MessageFormatter; import org.slf4j.helpers.MessageFormatter;
import org.slf4j.helpers.NormalizedParameters; import org.slf4j.helpers.NormalizedParameters;
import java.io.Serial;
/** /**
* A SLF4J Logger that redirects all log calls to sos!engine's logger. * 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)); 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 * Protected access allows only {@link CompatibilityLoggerFactory} and also derived classes to instantiate
* CompatibilityLogger instances. * {@link CompatibilityLogger} instances.
*
* @since 1-alpha0
*/ */
protected CompatibilityLogger(String name) { protected CompatibilityLogger(String name) {
this.name = 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. * Returns the fully qualified caller name.
* *

View file

@ -42,7 +42,6 @@ public class CompatibilityLoggerFactory implements ILoggerFactory {
*/ */
public CompatibilityLoggerFactory() { public CompatibilityLoggerFactory() {
loggerMap = new ConcurrentHashMap<>(); loggerMap = new ConcurrentHashMap<>();
CompatibilityLogger.lazyInit();
} }
/** /**