feat: remove unused extension dependsOn

BREAKING CHANGE: The extension does not exist anymore and any use should be removed
This commit is contained in:
oSumAtrIX 2022-10-04 08:18:09 +02:00
parent 4ae9ad09d6
commit 797286b758
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -58,12 +58,6 @@ object PatchExtensions {
if (cl == Patch::class) null else cl
}
}
@JvmStatic
fun Class<out Patch<Data>>.dependsOn(patch: Class<out Patch<Data>>): Boolean {
if (this.patchName == patch.patchName) throw IllegalArgumentException("thisval and patch may not be the same")
return this.dependencies?.any { it.java.patchName == this@dependsOn.patchName } == true
}
}
object MethodFingerprintExtensions {