From 5cd6856855ca50165277d6ba6b3049ef246fd568 Mon Sep 17 00:00:00 2001 From: isXander Date: Thu, 28 Sep 2023 16:23:04 +0100 Subject: Remove debug log from generating WEBP and GIF --- .../isxander/yacl3/gui/image/impl/AnimatedDynamicTextureImage.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common/src/main/java/dev/isxander/yacl3/gui/image/impl/AnimatedDynamicTextureImage.java b/common/src/main/java/dev/isxander/yacl3/gui/image/impl/AnimatedDynamicTextureImage.java index edf92a5..7a58461 100644 --- a/common/src/main/java/dev/isxander/yacl3/gui/image/impl/AnimatedDynamicTextureImage.java +++ b/common/src/main/java/dev/isxander/yacl3/gui/image/impl/AnimatedDynamicTextureImage.java @@ -172,8 +172,6 @@ public class AnimatedDynamicTextureImage extends DynamicTextureImage { } private static ImageRendererFactory.ImageSupplier createFromImageReader(ImageReader reader, AnimFrameProvider animationProvider, ResourceLocation uniqueLocation) throws Exception { - YACLConstants.LOGGER.info("Thread 1: {}", Thread.currentThread().getName()); - if (reader.isSeekForwardOnly()) { throw new RuntimeException("Image reader is not seekable"); } @@ -266,10 +264,7 @@ public class AnimatedDynamicTextureImage extends DynamicTextureImage { graphics.dispose(); reader.dispose(); - return () -> { - YACLConstants.LOGGER.info("Thread 2: {}", Thread.currentThread().getName()); - return new AnimatedDynamicTextureImage(image, frameWidth, frameHeight, frameCount, frameDelays, cols, rows, uniqueLocation); - }; + return () -> new AnimatedDynamicTextureImage(image, frameWidth, frameHeight, frameCount, frameDelays, cols, rows, uniqueLocation); } @FunctionalInterface -- cgit