diff --git a/src/main/kotlin/app/revanced/patcher/fingerprint/method/annotation/MethodFingerprintMetadata.kt b/src/main/kotlin/app/revanced/patcher/fingerprint/method/annotation/MethodFingerprintMetadata.kt index 15048ff..9022d75 100644 --- a/src/main/kotlin/app/revanced/patcher/fingerprint/method/annotation/MethodFingerprintMetadata.kt +++ b/src/main/kotlin/app/revanced/patcher/fingerprint/method/annotation/MethodFingerprintMetadata.kt @@ -2,18 +2,6 @@ package app.revanced.patcher.fingerprint.method.annotation import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -/** - * Annotations for a method which matches to a [MethodFingerprint]. - * @param definingClass The defining class name of the method. - * @param name A suggestive name for the method which the [MethodFingerprint] was created for. - */ -@Target(AnnotationTarget.CLASS) -@Retention(AnnotationRetention.RUNTIME) -annotation class MatchingMethod( - val definingClass: String = "L;", - val name: String = "" -) - /** * Annotations to scan a pattern [MethodFingerprint] with fuzzy algorithm. * @param threshold if [threshold] or more of the opcodes do not match, skip. diff --git a/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleFingerprint.kt b/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleFingerprint.kt index 2695e9a..e377145 100644 --- a/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleFingerprint.kt +++ b/src/test/kotlin/app/revanced/patcher/usage/bytecode/ExampleFingerprint.kt @@ -4,17 +4,12 @@ import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod -import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.usage.bytecode.ExampleBytecodeCompatibility import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.Opcode @Name("example-fingerprint") -@MatchingMethod( - "LexampleClass;", - "exampleMehod" -) @FuzzyPatternScanMethod(2) @ExampleBytecodeCompatibility @Version("0.0.1")