From de233e28246b1716b42bf331d2355ff4beed9564 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 8 Jul 2023 22:34:41 +0400 Subject: [PATCH] fix(youtube/custom-video-buffer): remove non functional deprecated patch --- .../CustomVideoBufferCompatibility.kt | 9 ----- .../patch/CustomVideoBufferPatch.kt | 36 ------------------- 2 files changed, 45 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/annotations/CustomVideoBufferCompatibility.kt delete mode 100644 src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/patch/CustomVideoBufferPatch.kt diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/annotations/CustomVideoBufferCompatibility.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/annotations/CustomVideoBufferCompatibility.kt deleted file mode 100644 index d1c317de..00000000 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/annotations/CustomVideoBufferCompatibility.kt +++ /dev/null @@ -1,9 +0,0 @@ -package app.revanced.patches.youtube.misc.videobuffer.annotations - -import app.revanced.patcher.annotation.Compatibility -import app.revanced.patcher.annotation.Package - -// TODO: delete this -@Compatibility([Package("com.google.android.youtube", arrayOf("18.16.37", "18.19.35", "18.20.39", "18.23.35"))]) -@Target(AnnotationTarget.CLASS) -internal annotation class CustomVideoBufferCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/patch/CustomVideoBufferPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/patch/CustomVideoBufferPatch.kt deleted file mode 100644 index b8b7a4da..00000000 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/videobuffer/patch/CustomVideoBufferPatch.kt +++ /dev/null @@ -1,36 +0,0 @@ -package app.revanced.patches.youtube.misc.videobuffer.patch - -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.data.BytecodeContext -import app.revanced.patcher.patch.BytecodePatch -import app.revanced.patcher.patch.PatchResult -import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.shared.settings.preference.impl.* -import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch -import app.revanced.patches.youtube.misc.videobuffer.annotations.CustomVideoBufferCompatibility - -// TODO: delete this patch -@Patch(include = false) -@Name("custom-video-buffer") -@Description("Lets you change the buffers of videos.") -@DependsOn([SettingsPatch::class]) -@CustomVideoBufferCompatibility -@Version("0.0.1") -class CustomVideoBufferPatch : BytecodePatch() { - override fun execute(context: BytecodeContext): PatchResult { - SettingsPatch.PreferenceScreen.MISC.addPreferences( - NonInteractivePreference( - StringResource("revanced_custom_video_buffer_disclaimer_title", "Custom video buffer"), - StringResource("revanced_custom_video_buffer_disclaimer_title_summary", - "These settings have been removed, because they were not functional for the duration of their existence"), - ) - ) - - return PatchResultSuccess() - } -} -