refactor(youtube/general-ads-patch): squash extension classes (#1006)

This commit is contained in:
OxrxL
2022-11-09 06:21:56 +01:00
committed by GitHub
parent 12ab08f207
commit 97217929af
4 changed files with 49 additions and 81 deletions

View File

@ -18,17 +18,6 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference
import org.w3c.dom.Node
import java.nio.file.Files
// TODO: this method does not make sense here
internal fun MutableMethodImplementation.injectHideCall(
index: Int,
register: Int
) {
this.addInstruction(
index,
"invoke-static { v$register }, Lapp/revanced/integrations/patches/HideHomeAdsPatch;->HideHomeAds(Landroid/view/View;)V".toInstruction()
)
}
/**
* traverse the class hierarchy starting from the given root class
*