From d212e19c3276c2ba6550f03dfd9bba47b7773524 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 26 Oct 2022 06:56:18 +0200 Subject: [PATCH] feat: remove partially complete patch --- .../annotations/FixScalingCompatibility.kt | 9 ------ .../metanav/scaling/patch/FixScalingPatch.kt | 32 ------------------- 2 files changed, 41 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/metanav/scaling/annotations/FixScalingCompatibility.kt delete mode 100644 src/main/kotlin/app/revanced/patches/metanav/scaling/patch/FixScalingPatch.kt diff --git a/src/main/kotlin/app/revanced/patches/metanav/scaling/annotations/FixScalingCompatibility.kt b/src/main/kotlin/app/revanced/patches/metanav/scaling/annotations/FixScalingCompatibility.kt deleted file mode 100644 index 9ff222c11..000000000 --- a/src/main/kotlin/app/revanced/patches/metanav/scaling/annotations/FixScalingCompatibility.kt +++ /dev/null @@ -1,9 +0,0 @@ -package app.revanced.patches.metanav.scaling.annotations - -import app.revanced.patcher.annotation.Compatibility -import app.revanced.patcher.annotation.Package - -@Compatibility([Package("com.metanav", arrayOf("0.1.0"))]) -@Target(AnnotationTarget.CLASS) -@Retention(AnnotationRetention.RUNTIME) -internal annotation class FixScalingCompatibility \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/metanav/scaling/patch/FixScalingPatch.kt b/src/main/kotlin/app/revanced/patches/metanav/scaling/patch/FixScalingPatch.kt deleted file mode 100644 index fc3e82224..000000000 --- a/src/main/kotlin/app/revanced/patches/metanav/scaling/patch/FixScalingPatch.kt +++ /dev/null @@ -1,32 +0,0 @@ -package app.revanced.patches.metanav.scaling.patch - -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.data.ResourceContext -import app.revanced.patcher.patch.PatchResult -import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.ResourcePatch -import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.metanav.scaling.annotations.FixScalingCompatibility -import org.w3c.dom.Element - -@Patch -@Name("fix-scaling") -@Description("Scales the content properly.") -@FixScalingCompatibility -@Version("0.0.1") -class FixScalingPatch : ResourcePatch { - override fun execute(context: ResourceContext): PatchResult { - context.xmlEditor["assets/startScreenCanvas.html"].use { editor -> - val svgNode = editor - .file - .getElementsByTagName("svg") - .item(0) as Element - - svgNode.setAttribute("height", "750") - } - - return PatchResultSuccess() - } -}