remove dead code

This commit is contained in:
inotia00
2023-04-09 07:32:07 +09:00
parent ee9e69e328
commit 3c16f3eb55
4 changed files with 2 additions and 41 deletions

View File

@ -6,7 +6,6 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.extensions.addInstruction
import app.revanced.patcher.extensions.addInstructions
import app.revanced.patcher.extensions.removeInstruction
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchResult
@ -52,7 +51,6 @@ class VideoQualityBytecodePatch : BytecodePatch(
relayFieldReference = (it.implementation!!.instructions.elementAt(0) as ReferenceInstruction).reference as FieldReference
} ?: return VideoQualitySettingsFingerprint.toErrorResult()
parentResult.mutableMethod.removeInstruction(parentResult.scanResult.patternScanResult!!.endIndex)
parentResult.mutableMethod.addInstructions(
0, """
iget-object v0, p0, ${parentResult.classDef.type}->${relayFieldReference.name}:${relayFieldReference.type}
@ -62,8 +60,6 @@ class VideoQualityBytecodePatch : BytecodePatch(
move-result p2
"""
)
LegacyVideoIdPatch.qualityOffSet = 4
} ?: return VideoQualitySettingsParentFingerprint.toErrorResult()
LegacyVideoIdPatch.injectCall("$INTEGRATIONS_VIDEO_QUALITY_CLASS_DESCRIPTOR->newVideoStarted(Ljava/lang/String;)V")