From 12ab08f207fc9b2976bc260a621a2b9296c8c727 Mon Sep 17 00:00:00 2001 From: OxrxL <108184954+OxrxL@users.noreply.github.com> Date: Wed, 9 Nov 2022 01:20:13 +0100 Subject: [PATCH] refactor(youtube/general-ads-patch): remove unused code (#1005) --- .../ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt index b4126f3f..10366dd0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt @@ -56,7 +56,6 @@ class GeneralBytecodeAdsPatch : BytecodePatch() { private val stringReferences = arrayOf( "Claiming to use more elements than provided", - "loadVideo() called on LocalDirector in wrong state", "LoggingProperties are not in proto format" ) @@ -245,11 +244,7 @@ class GeneralBytecodeAdsPatch : BytecodePatch() { ) } - stringReferences[1] -> { - // TODO: migrate video ads patch to here if necessary - } - - stringReferences[2] -> { // Litho ads + stringReferences[1] -> { // Litho ads val proxy = context.proxy(classDef) val proxiedClass = proxy.mutableClass