Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Aug 24, 2024
1 parent 105f49f commit 7342864
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 179 deletions.
39 changes: 0 additions & 39 deletions src/main/java/overrun/marshal/MarshalConfigs.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import overrun.marshal.gen.Sized;

import java.util.function.Consumer;
import java.util.function.Supplier;

/**
Expand All @@ -28,12 +27,6 @@
* @since 0.1.0
*/
public final class MarshalConfigs {
/**
* Enable checks.
* <p>
* The default value is {@code true}.
*/
public static final Entry<Boolean> CHECKS = new Entry<>(() -> true);
/**
* Check the size of a fixed size array argument.
* <p>
Expand All @@ -42,43 +35,11 @@ public final class MarshalConfigs {
* @see Sized
*/
public static final Entry<Boolean> CHECK_ARRAY_SIZE = new Entry<>(() -> true);
/**
* Enable debug messages and prints to {@link #apiLogger()}.
* <p>
* The default value is {@code false}.
*/
public static final Entry<Boolean> DEBUG = new Entry<>(() -> false);
private static Consumer<String> apiLogger = System.err::println;

private MarshalConfigs() {
//no instance
}

/**
* Sets the API logger.
*
* @param logger the logger
*/
public static void setApiLogger(Consumer<String> logger) {
apiLogger = logger != null ? logger : System.err::println;
}

/**
* {@return the API logger}
*/
public static Consumer<String> apiLogger() {
return apiLogger;
}

/**
* Logs the given message.
*
* @param log the message
*/
public static void apiLog(String log) {
apiLogger().accept(log);
}

/**
* A check entry
*
Expand Down
96 changes: 0 additions & 96 deletions src/main/java/overrun/marshal/StackWalkUtil.java

This file was deleted.

44 changes: 0 additions & 44 deletions src/main/java/overrun/marshal/gen/SizedSeg.java

This file was deleted.

0 comments on commit 7342864

Please sign in to comment.