Remove unused and leftover methods
This commit is contained in:
parent
f828d31094
commit
781f1c113c
2 changed files with 0 additions and 38 deletions
|
@ -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.data.versioning.StarOpenSourceVersioningSystem;
|
||||||
import de.staropensource.sosengine.base.logging.LoggerInstance;
|
import de.staropensource.sosengine.base.logging.LoggerInstance;
|
||||||
import de.staropensource.sosengine.base.types.DependencyVector;
|
import de.staropensource.sosengine.base.types.DependencyVector;
|
||||||
import de.staropensource.sosengine.base.utility.Miscellaneous;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
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.
|
* 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.");
|
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} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public @NotNull DependencyVector getDependencyVector() {
|
public @NotNull DependencyVector getDependencyVector() {
|
||||||
|
|
|
@ -23,14 +23,11 @@ import de.staropensource.sosengine.base.Engine;
|
||||||
import de.staropensource.sosengine.base.EngineConfiguration;
|
import de.staropensource.sosengine.base.EngineConfiguration;
|
||||||
import de.staropensource.sosengine.base.logging.LoggerInstance;
|
import de.staropensource.sosengine.base.logging.LoggerInstance;
|
||||||
import de.staropensource.sosengine.base.types.logging.LogLevel;
|
import de.staropensource.sosengine.base.types.logging.LogLevel;
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.slf4j.Marker;
|
import org.slf4j.Marker;
|
||||||
import org.slf4j.event.Level;
|
import org.slf4j.event.Level;
|
||||||
import org.slf4j.event.LoggingEvent;
|
|
||||||
import org.slf4j.helpers.LegacyAbstractLogger;
|
import org.slf4j.helpers.LegacyAbstractLogger;
|
||||||
import org.slf4j.helpers.MessageFormatter;
|
import org.slf4j.helpers.MessageFormatter;
|
||||||
import org.slf4j.helpers.NormalizedParameters;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
@ -138,18 +135,6 @@ public class CompatibilityLogger extends LegacyAbstractLogger {
|
||||||
forwardLogCall(level, messagePattern, arguments, throwable);
|
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?
|
* Is the given log level currently enabled?
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue