From 9f5c04ddfc34f7a75cf38558bfe7267ba27aed97 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 24 Oct 2024 13:53:26 -0400 Subject: [PATCH] fix: remove spammy log statements that are no longer are required --- .../integrations/youtube/patches/MiniplayerPatch.java | 10 ---------- .../youtube/patches/components/LithoFilterPatch.java | 1 - 2 files changed, 11 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/MiniplayerPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/MiniplayerPatch.java index 9af9fd5e8d..50ab73aa9e 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/MiniplayerPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/MiniplayerPatch.java @@ -196,8 +196,6 @@ public static void adjustMiniplayerOpacity(ImageView view) { * Injection point. */ public static boolean getModernFeatureFlagsActiveOverride(boolean original) { - if (original) Logger.printDebug(() -> "getModernFeatureFlagsActiveOverride original: " + original); - if (CURRENT_TYPE == ORIGINAL) { return original; } @@ -209,8 +207,6 @@ public static boolean getModernFeatureFlagsActiveOverride(boolean original) { * Injection point. */ public static boolean enableMiniplayerDoubleTapAction(boolean original) { - if (original) Logger.printDebug(() -> "enableMiniplayerDoubleTapAction original: " + true); - if (CURRENT_TYPE == ORIGINAL) { return original; } @@ -222,8 +218,6 @@ public static boolean enableMiniplayerDoubleTapAction(boolean original) { * Injection point. */ public static boolean enableMiniplayerDragAndDrop(boolean original) { - if (original) Logger.printDebug(() -> "enableMiniplayerDragAndDrop original: " + true); - if (CURRENT_TYPE == ORIGINAL) { return original; } @@ -236,8 +230,6 @@ public static boolean enableMiniplayerDragAndDrop(boolean original) { * Injection point. */ public static boolean setRoundedCorners(boolean original) { - if (original) Logger.printDebug(() -> "setRoundedCorners original: " + true); - if (CURRENT_TYPE.isModern()) { return MINIPLAYER_ROUNDED_CORNERS_ENABLED; } @@ -271,8 +263,6 @@ public static float setMovementBoundFactor(float original) { * Injection point. */ public static boolean setDropShadow(boolean original) { - if (original) Logger.printDebug(() -> "setViewElevation original: " + true); - return original; } diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/LithoFilterPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/LithoFilterPatch.java index 5664ea8d7f..8fcdd3d534 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/LithoFilterPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/LithoFilterPatch.java @@ -155,7 +155,6 @@ public static boolean filter(@Nullable String lithoIdentifier, @NonNull StringBu // Potentially the buffer may have been null or never set up until now. // Use an empty buffer so the litho id/path filters still work correctly. if (protobufBuffer == null) { - Logger.printDebug(() -> "Proto buffer is null, using an empty buffer array"); bufferArray = EMPTY_BYTE_ARRAY; } else if (!protobufBuffer.hasArray()) { Logger.printDebug(() -> "Proto buffer does not have an array, using an empty buffer array");