diff --git a/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java b/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java index 6949c69..93c0383 100644 --- a/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java +++ b/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java @@ -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() { 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 86d3a6e..948be4b 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 @@ -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? *