diff --git a/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java b/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java deleted file mode 100644 index 14ad96b5..00000000 --- a/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java +++ /dev/null @@ -1,26 +0,0 @@ -package app.revanced.integrations.patches; - -import app.revanced.integrations.settings.SettingsEnum; - -public class VideoBufferPatch { - - public static int getMaxBuffer() { - int confVal = SettingsEnum.MAX_BUFFER.getInt(); - if (confVal < 1) confVal = 1; - return confVal; - } - - public static int getPlaybackBuffer() { - int confVal = SettingsEnum.PLAYBACK_MAX_BUFFER.getInt(); - if (confVal < 1) confVal = 1; - return confVal; - } - - public static int getReBuffer() { - int confVal = SettingsEnum.MAX_PLAYBACK_BUFFER_AFTER_REBUFFER.getInt(); - if (confVal < 1) confVal = 1; - return confVal; - } - - -} diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index 3d1b59de..e427e5bd 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -116,11 +116,6 @@ public enum SettingsEnum { SWIPE_OVERLAY_BACKGROUND_ALPHA("revanced_swipe_overlay_background_alpha", 127, ReturnType.INTEGER), SWIPE_MAGNITUDE_THRESHOLD("revanced_swipe_magnitude_threshold", 30f, ReturnType.FLOAT), - // Buffer settings - MAX_BUFFER("revanced_pref_max_buffer_ms", 120000, ReturnType.INTEGER), - PLAYBACK_MAX_BUFFER("revanced_pref_buffer_for_playback_ms", 2500, ReturnType.INTEGER), - MAX_PLAYBACK_BUFFER_AFTER_REBUFFER("revanced_pref_buffer_for_playback_after_rebuffer_ms", 5000, ReturnType.INTEGER), - // Debug settings DEBUG("revanced_debug_enabled", false, ReturnType.BOOLEAN), DEBUG_STACKTRACE("revanced_debug_stacktrace_enabled", false, ReturnType.BOOLEAN),