From 0bfb92a0cbd72df5ba513264efb583e201cfcf82 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Thu, 14 Apr 2022 11:59:23 +0200 Subject: [PATCH] revert: AccessFlag extensions not working with IDE --- .../kotlin/app/revanced/patcher/extensions/Extensions.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt b/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt index 07c20d35..c0863677 100644 --- a/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt +++ b/src/main/kotlin/app/revanced/patcher/extensions/Extensions.kt @@ -4,12 +4,8 @@ import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.builder.BuilderInstruction import org.jf.dexlib2.builder.MutableMethodImplementation -class AccessFlagExtensions { - companion object { - infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value - infix fun Int.or(other: AccessFlags) = this or other.value - } -} +infix fun AccessFlags.or(other: AccessFlags) = this.value or other.value +infix fun Int.or(other: AccessFlags) = this or other.value fun MutableMethodImplementation.addInstructions(index: Int, instructions: List) { for (i in instructions.lastIndex downTo 0) {