Remove unused and leftover methods

This commit is contained in:
JeremyStar™ 2024-08-19 02:49:31 +02:00
parent f828d31094
commit 781f1c113c
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 0 additions and 38 deletions

View file

@ -25,16 +25,12 @@ import de.staropensource.sosengine.base.data.information.EngineInformation;
import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import java.util.HashSet;
import java.util.Set;
import static org.lwjgl.glfw.GLFW.glfwSetErrorCallback;
import static org.lwjgl.glfw.GLFW.glfwTerminate;
/**
* The main class of the Vulkan Graphics API.
*
@ -91,25 +87,6 @@ public final class VulkanSubsystem extends SubsystemClass {
logger.warn("The Vulkan API is currently a stub and does not provide Vulkan as a Graphics API.\nIf you want to remove this message, remove the Vulkan subsystem from your dependencies.");
}
/**
* Shuts the graphics subsystem down.
*
* @since v1-alpha0
*/
public static void shutdownApi() {
LoggerInstance logger = instance.logger;
logger.verb("Shutting down");
@SuppressWarnings("resource")
long shutdownTime = Miscellaneous.measureExecutionTime(() -> {
glfwTerminate();
//noinspection DataFlowIssue
glfwSetErrorCallback(null).free();
});
logger.info("Shut down in " + shutdownTime + "ms");
}
/** {@inheritDoc} */
@Override
public @NotNull DependencyVector getDependencyVector() {

View file

@ -23,14 +23,11 @@ import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.logging.LogLevel;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.slf4j.Marker;
import org.slf4j.event.Level;
import org.slf4j.event.LoggingEvent;
import org.slf4j.helpers.LegacyAbstractLogger;
import org.slf4j.helpers.MessageFormatter;
import org.slf4j.helpers.NormalizedParameters;
/**
* A SLF4J Logger that redirects all log calls to sos!engine's logger.
@ -138,18 +135,6 @@ public class CompatibilityLogger extends LegacyAbstractLogger {
forwardLogCall(level, messagePattern, arguments, throwable);
}
/**
* Just redirects to {@code forwardLogCall}
*
* @param event a {@link LoggingEvent}
* @see #forwardLogCall(Level, String, Object[], Throwable)
* @since v1-alpha0
*/
public void log(@NotNull LoggingEvent event) {
NormalizedParameters np = NormalizedParameters.normalize(event);
forwardLogCall(event.getLevel(), np.getMessage(), np.getArguments(), event.getThrowable());
}
/**
* Is the given log level currently enabled?
*