Skip to content

Commit

Permalink
Remove unused logger from the backport copy of Platform.
Browse files Browse the repository at this point in the history
(The logger was used by `ServiceLoader`, which we don't use in the backport.)

RELNOTES=n/a
PiperOrigin-RevId: 589839164
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Dec 11, 2023
1 parent 5b8681e commit 314953c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions android/guava/src/com/google/common/base/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
import com.google.common.annotations.GwtCompatible;
import java.lang.ref.WeakReference;
import java.util.Locale;
import java.util.ServiceConfigurationError;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Pattern;
import javax.annotation.CheckForNull;

Expand All @@ -31,7 +28,6 @@
@GwtCompatible(emulated = true)
@ElementTypesAreNonnullByDefault
final class Platform {
private static final Logger logger = Logger.getLogger(Platform.class.getName());
private static final PatternCompiler patternCompiler = loadPatternCompiler();

private Platform() {}
Expand Down Expand Up @@ -92,10 +88,6 @@ private static PatternCompiler loadPatternCompiler() {
return new JdkPatternCompiler();
}

private static void logPatternCompilerError(ServiceConfigurationError e) {
logger.log(Level.WARNING, "Error loading regex compiler, falling back to next option", e);
}

private static final class JdkPatternCompiler implements PatternCompiler {
@Override
public CommonPattern compile(String pattern) {
Expand Down

0 comments on commit 314953c

Please sign in to comment.