Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rmannibucau committed May 5, 2022
1 parent 76430e8 commit 40ac841
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.Map;
import java.util.Properties;
import java.util.ResourceBundle;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicBoolean;
Expand All @@ -50,7 +49,6 @@
import java.util.logging.Logger;
import java.util.stream.Stream;

import static java.lang.StackWalker.Option.RETAIN_CLASS_REFERENCE;
import static java.util.Collections.enumeration;
import static java.util.Locale.ROOT;
import static java.util.Optional.ofNullable;
Expand Down Expand Up @@ -103,17 +101,6 @@ public Logger getLogger(final String name, final String bundle) {
return newInstance;
}

private Module findModule() {
return StackWalker
.getInstance(Set.of(RETAIN_CLASS_REFERENCE), 5)
.walk(f -> f.filter(it -> !"io.yupiik.logging.jul.logger.YupiikLogger".equals(it.getClassName()) &&
!"io.yupiik.logging.jul.logger.YupiikLoggers".equals(it.getClassName()))
.findFirst()
.map(StackWalker.StackFrame::getDeclaringClass)
.map(Class::getModule))
.orElse(null);
}

public String getProperty(final String name) {
return System.getProperty(name, state.configuration.get(name));
}
Expand Down

0 comments on commit 40ac841

Please sign in to comment.