From 6a2fd88d4000b4c0a7c6e15331c5a6d43550c319 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 18 Feb 2023 20:50:38 +0100 Subject: [PATCH] refactor(youtube/open-links-directly): remove unused annotation from fingerprints Signed-off-by: oSumAtrIX --- ...intPrimary.kt => OpenLinksDirectlyPrimaryFingerprint.kt} | 6 +----- ...econdary.kt => OpenLinksDirectlySecondaryFingerprint.kt} | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) rename src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/{OpenLinksDirectlyFingerprintPrimary.kt => OpenLinksDirectlyPrimaryFingerprint.kt} (74%) rename src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/{OpenLinksDirectlyFingerprintSecondary.kt => OpenLinksDirectlySecondaryFingerprint.kt} (78%) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyFingerprintPrimary.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyPrimaryFingerprint.kt similarity index 74% rename from src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyFingerprintPrimary.kt rename to src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyPrimaryFingerprint.kt index e5c497f7..3cd25f03 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyFingerprintPrimary.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyPrimaryFingerprint.kt @@ -1,17 +1,13 @@ package app.revanced.patches.youtube.misc.openlinksdirectly.fingerprints -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patches.youtube.misc.openlinksdirectly.annotations.OpenLinksDirectlyCompatibility import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.Opcode -@Name("open-links-directly-primary-fingerprint") @OpenLinksDirectlyCompatibility -@Version("0.0.1") -object OpenLinksDirectlyFingerprintPrimary : MethodFingerprint( +object OpenLinksDirectlyPrimaryFingerprint : MethodFingerprint( "L", AccessFlags.PUBLIC or AccessFlags.FINAL, listOf("L"), listOf( Opcode.CHECK_CAST, Opcode.INVOKE_STATIC, diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyFingerprintSecondary.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlySecondaryFingerprint.kt similarity index 78% rename from src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyFingerprintSecondary.kt rename to src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlySecondaryFingerprint.kt index 2dda99b4..790f02b2 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlyFingerprintSecondary.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/openlinksdirectly/fingerprints/OpenLinksDirectlySecondaryFingerprint.kt @@ -1,17 +1,13 @@ package app.revanced.patches.youtube.misc.openlinksdirectly.fingerprints -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patches.youtube.misc.openlinksdirectly.annotations.OpenLinksDirectlyCompatibility import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.Opcode -@Name("open-links-directly-secondary-fingerprint") @OpenLinksDirectlyCompatibility -@Version("0.0.1") -object OpenLinksDirectlyFingerprintSecondary : MethodFingerprint( +object OpenLinksDirectlySecondaryFingerprint : MethodFingerprint( "L", AccessFlags.PUBLIC or AccessFlags.STATIC, listOf("L"), listOf( Opcode.INVOKE_STATIC, Opcode.MOVE_RESULT_OBJECT,