Removing dev code that snuck in
This commit is contained in:
parent
41b31dd56c
commit
8cc69fe38b
1 changed files with 0 additions and 20 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
package app.revanced.patches.youtube.video.information
|
package app.revanced.patches.youtube.video.information
|
||||||
|
|
||||||
import app.revanced.patcher.InstructionFilter
|
|
||||||
import app.revanced.patcher.InstructionLocation
|
|
||||||
import app.revanced.patcher.InstructionLocation.MatchAfterWithin
|
import app.revanced.patcher.InstructionLocation.MatchAfterWithin
|
||||||
import app.revanced.patcher.fieldAccess
|
import app.revanced.patcher.fieldAccess
|
||||||
import app.revanced.patcher.fingerprint
|
import app.revanced.patcher.fingerprint
|
||||||
|
|
@ -12,10 +10,7 @@ import app.revanced.patches.youtube.shared.videoQualityChangedFingerprint
|
||||||
import app.revanced.util.getReference
|
import app.revanced.util.getReference
|
||||||
import com.android.tools.smali.dexlib2.AccessFlags
|
import com.android.tools.smali.dexlib2.AccessFlags
|
||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
import com.android.tools.smali.dexlib2.iface.Method
|
|
||||||
import com.android.tools.smali.dexlib2.iface.instruction.Instruction
|
|
||||||
import com.android.tools.smali.dexlib2.iface.reference.FieldReference
|
import com.android.tools.smali.dexlib2.iface.reference.FieldReference
|
||||||
import com.android.tools.smali.dexlib2.iface.reference.StringReference
|
|
||||||
|
|
||||||
internal val createVideoPlayerSeekbarFingerprint = fingerprint {
|
internal val createVideoPlayerSeekbarFingerprint = fingerprint {
|
||||||
returns("V")
|
returns("V")
|
||||||
|
|
@ -54,21 +49,6 @@ internal val playerInitFingerprint = fingerprint {
|
||||||
internal val seekFingerprint = fingerprint {
|
internal val seekFingerprint = fingerprint {
|
||||||
instructions(
|
instructions(
|
||||||
string("Attempting to seek during an ad"),
|
string("Attempting to seek during an ad"),
|
||||||
object : InstructionFilter {
|
|
||||||
override fun matches(
|
|
||||||
enclosingMethod: Method,
|
|
||||||
instruction: Instruction
|
|
||||||
): Boolean {
|
|
||||||
TODO("Not yet implemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
override val location: InstructionLocation = InstructionLocation.MatchFirst()
|
|
||||||
},
|
|
||||||
|
|
||||||
// Custom inline filter. Uses default match anywhere after the previous filter.
|
|
||||||
{ _, instruction ->
|
|
||||||
instruction.getReference<StringReference>()?.string?.let { it.length > 10 } ?: false
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue